From 325cc17e1b930ea9c8c19e604e3d9866c1cd985b Mon Sep 17 00:00:00 2001 From: Szymon P Date: Thu, 26 Feb 2026 13:52:30 +0100 Subject: [PATCH] trele morele --- flake.nix | 12 ++++++++++-- modules/xdg.nix | 13 +++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) 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; + }; }