Clean up home directory

This commit is contained in:
2025-11-30 02:07:20 +01:00
parent 4f89dcf229
commit b9f7f56b53
3 changed files with 27 additions and 3 deletions

View File

@@ -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";
};
} }

View File

@@ -88,9 +88,6 @@
pipes pipes
cmatrix cmatrix
# Backup
vscode
libreoffice-qt6-fresh libreoffice-qt6-fresh
]; ];
}; };

View File

@@ -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 != [ ]) ''