Clean up home directory
This commit is contained in:
@@ -5,4 +5,27 @@
|
|||||||
./shell
|
./shell
|
||||||
./git.nix
|
./git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||||
|
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
||||||
|
NUGET_PACKAGES = "${config.xdg.dataHome}/nuget";
|
||||||
|
W3M_DIR = "${config.xdg.dataHome}/w3m";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.userDirs = {
|
||||||
|
enable = true;
|
||||||
|
createDirectories = true;
|
||||||
|
|
||||||
|
download = "${config.home.homeDirectory}/download";
|
||||||
|
|
||||||
|
music = "${config.home.homeDirectory}/media/music";
|
||||||
|
pictures = "${config.home.homeDirectory}/media/images";
|
||||||
|
videos = "${config.home.homeDirectory}/media/videos";
|
||||||
|
|
||||||
|
desktop = "${config.xdg.dataHome}/desktop";
|
||||||
|
documents = "${config.xdg.dataHome}/documents";
|
||||||
|
publicShare = "${config.xdg.dataHome}/public";
|
||||||
|
templates = "${config.xdg.dataHome}/templates";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,9 +88,6 @@
|
|||||||
pipes
|
pipes
|
||||||
cmatrix
|
cmatrix
|
||||||
|
|
||||||
# Backup
|
|
||||||
vscode
|
|
||||||
|
|
||||||
libreoffice-qt6-fresh
|
libreoffice-qt6-fresh
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,6 +21,9 @@ in
|
|||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
dotDir = "${config.xdg.configHome}/zsh";
|
||||||
|
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
autosuggestion.enable = true;
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting = {
|
syntaxHighlighting = {
|
||||||
@@ -40,6 +43,7 @@ in
|
|||||||
ignoreDups = true;
|
ignoreDups = true;
|
||||||
save = 10000;
|
save = 10000;
|
||||||
size = 10000;
|
size = 10000;
|
||||||
|
path = "${config.xdg.dataHome}/zsh_history";
|
||||||
};
|
};
|
||||||
|
|
||||||
profileExtra = lib.optionalString (config.home.sessionPath != [ ]) ''
|
profileExtra = lib.optionalString (config.home.sessionPath != [ ]) ''
|
||||||
|
|||||||
Reference in New Issue
Block a user