diff --git a/home/xdg/home.nix b/home/xdg/home.nix new file mode 100644 index 00000000..ff3f93d5 --- /dev/null +++ b/home/xdg/home.nix @@ -0,0 +1,21 @@ +{ config +, ... }: { + xdg = { + enable = true; + userDirs = let + home = config.home.homeDirectory; + local = "${home}/local"; + in { + enable = true; + createDirectories = true; + download = "${home}/dl"; + desktop = "${local}/desktop"; + documents = "${local}/documents"; + music = "${local}/music"; + pictures = "${local}/pictures"; + publicShare = "${local}/public"; + templates = "${local}/templates"; + videos = "${local}/videos"; + }; + }; +} diff --git a/home/xdg/nixos.nix b/home/xdg/nixos.nix new file mode 100644 index 00000000..f6e35f91 --- /dev/null +++ b/home/xdg/nixos.nix @@ -0,0 +1,3 @@ +{ + users.home.persist.directories = [ "local" "dl" ]; +}