mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-08-30 15:17:25 +02:00
refactor(home): share XDG base configuration
This commit is contained in:
@@ -16,21 +16,12 @@
|
||||
xdg-user-dirs
|
||||
];
|
||||
|
||||
xdg = {
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
|
||||
cacheHome = "${config.home.homeDirectory}/.cache";
|
||||
configHome = "${config.home.homeDirectory}/.config";
|
||||
dataHome = "${config.home.homeDirectory}/.local/share";
|
||||
stateHome = "${config.home.homeDirectory}/.local/state";
|
||||
|
||||
userDirs = {
|
||||
enable = true;
|
||||
setSessionVariables = true;
|
||||
createDirectories = true;
|
||||
extraConfig = {
|
||||
SCREENSHOTS = "${config.xdg.userDirs.pictures}/Screenshots";
|
||||
};
|
||||
setSessionVariables = true;
|
||||
createDirectories = true;
|
||||
extraConfig = {
|
||||
SCREENSHOTS = "${config.xdg.userDirs.pictures}/Screenshots";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user