diff --git a/flake.lock b/flake.lock index 84859be..3e1e7c7 100644 --- a/flake.lock +++ b/flake.lock @@ -210,6 +210,21 @@ "type": "github" } }, + "impermanence": { + "locked": { + "lastModified": 1697303681, + "narHash": "sha256-caJ0rXeagaih+xTgRduYtYKL1rZ9ylh06CIrt1w5B4g=", + "owner": "nix-community", + "repo": "impermanence", + "rev": "0f317c2e9e56550ce12323eb39302d251618f5b5", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "impermanence", + "type": "github" + } + }, "nix-minecraft": { "inputs": { "flake-compat": "flake-compat_2", @@ -323,6 +338,7 @@ "deploy-rs": "deploy-rs", "home-manager": "home-manager_2", "homepage": "homepage", + "impermanence": "impermanence", "nix-minecraft": "nix-minecraft", "nixos-generators": "nixos-generators", "nixpkgs": "nixpkgs_2", diff --git a/flake.nix b/flake.nix index f41961c..2c27a7d 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,8 @@ baduhai-nur.url = "github:baduhai/nur"; + impermanence.url = "github:nix-community/impermanence"; + deploy-rs = { url = "github:serokell/deploy-rs"; inputs.nixpkgs.follows = "nixpkgs"; @@ -41,11 +43,12 @@ url = "github:t184256/yousable"; inputs.nixpkgs.follows = "nixpkgs"; }; + }; outputs = inputs@{ self, nixpkgs, home-manager, baduhai-nur, nixpkgs-stable , deploy-rs, agenix, nixos-generators, homepage, nix-minecraft, yousable - , ... }: { + , impermanence, ... }: { nixosConfigurations = { rotterdam = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -53,6 +56,8 @@ modules = [ ./hosts/desktops/rotterdam.nix agenix.nixosModules.default + home-manager.nixosModules.default + impermanence.nixosModules.impermanence { nixpkgs.overlays = [ baduhai-nur.overlay agenix.overlays.default ]; diff --git a/hosts/desktops/common/users.nix b/hosts/desktops/common/users.nix index 957f402..c8ea6ad 100644 --- a/hosts/desktops/common/users.nix +++ b/hosts/desktops/common/users.nix @@ -19,4 +19,10 @@ "i2c" ]; }; + + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + users.user = import ../../../users/desktops/user.nix; + }; }