fix(xdg) dont create dirs

This commit is contained in:
Barrett Ruth 2026-02-14 22:43:06 -05:00
parent 2ab886b3d4
commit 3f403a7de9
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 8 additions and 14 deletions

View file

@ -32,25 +32,19 @@
xdg.enable = true;
xdg.userDirs = lib.mkIf hostConfig.isLinux {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/Desktop";
documents = "${config.home.homeDirectory}/Documents";
createDirectories = false;
download = "${config.home.homeDirectory}/Downloads";
music = "${config.home.homeDirectory}/Music";
pictures = "${config.home.homeDirectory}/Pictures";
publicShare = "${config.home.homeDirectory}/Public";
templates = "${config.home.homeDirectory}/Templates";
videos = "${config.home.homeDirectory}/Videos";
# desktop = "${config.home.homeDirectory}/Desktop";
# documents = "${config.home.homeDirectory}/Documents";
# music = "${config.home.homeDirectory}/Music";
# publicShare = "${config.home.homeDirectory}/Public";
# templates = "${config.home.homeDirectory}/Templates";
# videos = "${config.home.homeDirectory}/Videos";
};
home.sessionVariables = lib.mkIf hostConfig.isLinux {
XDG_DESKTOP_DIR = config.xdg.userDirs.desktop;
XDG_DOCUMENTS_DIR = config.xdg.userDirs.documents;
XDG_DOWNLOAD_DIR = config.xdg.userDirs.download;
XDG_MUSIC_DIR = config.xdg.userDirs.music;
XDG_PICTURES_DIR = config.xdg.userDirs.pictures;
XDG_PUBLICSHARE_DIR = config.xdg.userDirs.publicShare;
XDG_TEMPLATES_DIR = config.xdg.userDirs.templates;
XDG_VIDEOS_DIR = config.xdg.userDirs.videos;
};
targets.genericLinux.enable = hostConfig.isLinux && !hostConfig.isNixOS;
news.display = "silent";

View file

@ -110,7 +110,7 @@ in
services.greetd = {
enable = true;
settings.default_session = {
command = "${tuigreet} --time --asterisks --cmd ${loginShell} --theme 'border=dark-gray;text=white;prompt=blue;time=dark-gray;action=dark-gray;button=blue;container=black;input=white'";
command = "${tuigreet} --time --asterisks --cmd ${loginShell}";
user = "greeter";
};
};