Move more things to xdg paths

This commit is contained in:
Bun 2025-05-14 14:57:32 -04:00
parent 04560dfbc5
commit c41543edcf
23 changed files with 491 additions and 566 deletions

View file

@ -1,17 +1,20 @@
{ config, ... }:
{
xdg.userDirs = {
enable = config.home.desktop.enable;
xdg.userDirs = with config.home; {
enable = config.xdg.enable;
createDirectories = true;
desktop = null;
pictures = "${config.home.homeDirectory}/Photos";
music = null;
pictures = "${homeDirectory}/Photos";
publicShare = null;
templates = null;
extraConfig = {
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${config.home.homeDirectory}" else "${config.home.homeDirectory}/.stow";
XDG_GAMES_DIR = "${homeDirectory}/Games";
XDG_KEEPERS_DIR = "${homeDirectory}/Keepers";
XDG_PERSIST_DIR = if !config.targets.genericLinux.enable then "/persist${homeDirectory}" else "${homeDirectory}/.stow";
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
};
};