diff --git a/home/default.nix b/home/default.nix index 1f69643..b81c469 100644 --- a/home/default.nix +++ b/home/default.nix @@ -13,6 +13,8 @@ # Enable flakes. nix.settings.experimental-features = ["nix-command" "flakes"]; + targets.genericLinux.enable = true; + home.packages = with pkgs; [ inputs.alejandra.defaultPackage.${system} just @@ -26,6 +28,7 @@ ./btop ./cava ./gh + ./xdg ]; # This value determines the Home Manager release that your configuration is diff --git a/home/xdg/default.nix b/home/xdg/default.nix new file mode 100644 index 0000000..4a608ab --- /dev/null +++ b/home/xdg/default.nix @@ -0,0 +1,27 @@ +{config, ...}: { + home.preferXdgDirectories = true; + + xdg = let + homeDir = config.home.homeDirectory; + in { + enable = true; + + cacheHome = "${homeDir}/.cache"; + configHome = "${homeDir}/.config"; + dataHome = "${homeDir}/.local/share"; + stateHome = "${homeDir}/.local/state"; + + userDirs = { + enable = true; + createDirectories = true; + + desktop = "${homeDir}/desktop"; + documents = null; + download = "${homeDir}/downloads"; + music = null; + pictures = "${homeDir}/pictures"; + templates = null; + videos = "${homeDir}/videos"; + }; + }; +}