summaryrefslogtreecommitdiff
path: root/home/ebisu/fortune/system
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-02 23:23:05 -0700
committerFuwn <[email protected]>2024-09-02 23:23:05 -0700
commit1abbd32e81e318fbe94a08952bedefb27b2d7477 (patch)
tree8d7948f181f41e5dd28939669623a4f3fc2a3f0b /home/ebisu/fortune/system
parentok (diff)
downloadnixos-config-1abbd32e81e318fbe94a08952bedefb27b2d7477.tar.xz
nixos-config-1abbd32e81e318fbe94a08952bedefb27b2d7477.zip
home
Diffstat (limited to 'home/ebisu/fortune/system')
-rw-r--r--home/ebisu/fortune/system/xdg.nix28
1 files changed, 26 insertions, 2 deletions
diff --git a/home/ebisu/fortune/system/xdg.nix b/home/ebisu/fortune/system/xdg.nix
index dde487b..7a0bf32 100644
--- a/home/ebisu/fortune/system/xdg.nix
+++ b/home/ebisu/fortune/system/xdg.nix
@@ -1,9 +1,33 @@
-{ pkgs, ... }:
+{ pkgs, config, ... }:
{
home.packages = with pkgs; [
xdg-utils
xdg-ninja
];
- xdg.enable = true;
+ xdg = {
+ 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 = pkgs.stdenv.isLinux;
+ createDirectories = true;
+ download = "${config.home.homeDirectory}/Downloads";
+ desktop = "${config.home.homeDirectory}/Desktop";
+ documents = "${config.home.homeDirectory}/Documents";
+ publicShare = null; # "${config.home.homeDirectory}/Public";
+ templates = null; # "${config.home.homeDirectory}/Templates";
+ music = "${config.home.homeDirectory}/Music";
+ pictures = "${config.home.homeDirectory}/Pictures";
+ videos = "${config.home.homeDirectory}/Videos";
+
+ extraConfig = {
+ XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
+ XDG_MAIL_DIR = "${config.home.homeDirectory}/Mail";
+ };
+ };
+ };
}