From 1585865544ff3fb8de60cc7e2be33b7f14e60ab6 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Sun, 6 Oct 2024 12:10:46 +0100 Subject: [PATCH] xdg --- home/arrakis/default.nix | 2 ++ home/common/features/xdg.nix | 17 +++++++++++++++++ home/common/programs/syncthing.nix | 1 - 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 home/common/features/xdg.nix diff --git a/home/arrakis/default.nix b/home/arrakis/default.nix index 0e82594..e5e907c 100644 --- a/home/arrakis/default.nix +++ b/home/arrakis/default.nix @@ -19,6 +19,7 @@ ../common/programs/kitty.nix ../common/programs/syncthing.nix ../common/features/colorscheme.nix + ../common/features/xdg.nix ]; home.sessionVariables = { @@ -43,4 +44,5 @@ username = lib.mkDefault "naps62"; stateVersion = lib.mkDefault "24.05"; }; + } diff --git a/home/common/features/xdg.nix b/home/common/features/xdg.nix new file mode 100644 index 0000000..f26a248 --- /dev/null +++ b/home/common/features/xdg.nix @@ -0,0 +1,17 @@ +{ ... }: +{ + xdg = { + userDirs = { + enable = true; + createDirectories = true; + desktop = null; + documents = null; + download = "downloads"; + music = null; + pictures = null; + publicShare = null; + templates = null; + videos = null; + }; + }; +} diff --git a/home/common/programs/syncthing.nix b/home/common/programs/syncthing.nix index 3e9fc8d..3013ae4 100644 --- a/home/common/programs/syncthing.nix +++ b/home/common/programs/syncthing.nix @@ -2,6 +2,5 @@ { services.syncthing = { enable = true; - dataDir = "$HOME/sync"; }; }