diff --git a/flake.nix b/flake.nix index d45799e..3b2116e 100644 --- a/flake.nix +++ b/flake.nix @@ -49,11 +49,16 @@ obsidian = "Dokumenty/obsidian"; }; }; + + system = "x86_64-linux"; in { homeConfigurations = { "arch" = home-manager.lib.homeManagerConfiguration { - pkgs = import nixpkgs { system = "x86_64-linux"; }; + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; extraSpecialArgs = { inherit inputs @@ -69,7 +74,10 @@ }; "nixos" = home-manager.lib.homeManagerConfiguration { - pkgs = import nixpkgs { system = "x86_64-linux"; }; + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; extraSpecialArgs = { inherit inputs diff --git a/modules/xdg.nix b/modules/xdg.nix index 6686d1f..b99b3c3 100644 --- a/modules/xdg.nix +++ b/modules/xdg.nix @@ -43,4 +43,17 @@ "x-scheme-handler/tuta" = [ "tutanota-desktop.desktop" ]; }; }; + + xdg.userDirs = { + enable = true; + createDirectories = true; + desktop = null; + documents = "$HOME/Dokumenty"; + download = "$HOME/Pobrane"; + music = null; + pictures = "$HOME/Obrazy"; + videos = "$HOME/Video"; + templates = null; + publicShare = null; + }; }