42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ config, ... }:
|
|
{
|
|
xdg = {
|
|
enable = true;
|
|
# File types
|
|
mime.enable = true;
|
|
# File associatons
|
|
mimeApps = {
|
|
enable = true;
|
|
};
|
|
# User directories
|
|
userDirs = {
|
|
enable = true;
|
|
# I want them lowercased
|
|
desktop = "\$HOME/desktop";
|
|
documents = "\$HOME/documents";
|
|
download = "\$HOME/downloads";
|
|
music = "\$HOME/music";
|
|
pictures = "\$HOME/pictures";
|
|
publicShare = "\$HOME/public";
|
|
templates = "\$HOME/templates";
|
|
videos = "\$HOME/videos";
|
|
};
|
|
# A tidy home is a tidy mind
|
|
dataFile = {
|
|
"bash/.keep".text = "";
|
|
"tig/.keep".text = "";
|
|
};
|
|
};
|
|
|
|
# I want a tidier home
|
|
home.sessionVariables = with config.xdg; {
|
|
CARGO_HOME = "${dataHome}/cargo";
|
|
DOCKER_CONFIG = "${configHome}/docker";
|
|
HISTFILE = "${dataHome}/bash/history";
|
|
INPUTRC = "${configHome}/readline/inputrc";
|
|
LESSHISTFILE = "${dataHome}/less/history";
|
|
LESSKEY = "${configHome}/less/lesskey";
|
|
WGETRC = "${configHome}/wgetrc";
|
|
};
|
|
}
|