commit aa6deefe0a615cea51247807220579a38d6266d9
parent e53255ca0828ca05ac0341a1255921f484e9abd2
Author: Katja (ctucx) <git@ctu.cx>
Date: Fri, 16 May 2025 14:56:25 +0200
parent e53255ca0828ca05ac0341a1255921f484e9abd2
Author: Katja (ctucx) <git@ctu.cx>
Date: Fri, 16 May 2025 14:56:25 +0200
flake: fix unstable nixos configuration
2 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/flake.lock b/flake.lock @@ -217,6 +217,27 @@ "type": "github" } }, + "homeManagerUnstable": { + "inputs": { + "nixpkgs": [ + "nixpkgsUnstable" + ] + }, + "locked": { + "lastModified": 1747374689, + "narHash": "sha256-JT/aBZqmK1LbExzwT9cPkvxKc0IC4i6tZKOPjsSWFbI=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "d2263ce5f4c251c0f7608330e8fdb7d1f01f0667", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "master", + "repo": "home-manager", + "type": "github" + } + }, "lanzaboote": { "inputs": { "crane": "crane", @@ -407,6 +428,7 @@ "flakeyProfile": "flakeyProfile", "haumea": "haumea", "homeManager": "homeManager", + "homeManagerUnstable": "homeManagerUnstable", "lanzaboote": "lanzaboote", "lix": "lix", "lixModule": "lixModule",
diff --git a/flake.nix b/flake.nix @@ -6,7 +6,7 @@ inputs: let nixpkgsLib = inputs.nixpkgs.lib; - unstableNixpkgsLib = inputs.nixpkgs-unstable.lib; + unstableNixpkgsLib = inputs.nixpkgsUnstable.lib; forAllSystems = function: @@ -74,8 +74,14 @@ ]; } + ( + if !hostConfig.nixpkgsStable then + inputs.homeManagerUnstable.nixosModules.default + else + inputs.homeManager.nixosModules.default + ) + inputs.lixModule.nixosModules.default - inputs.homeManager.nixosModules.default inputs.lanzaboote.nixosModules.lanzaboote inputs.sopsNix.nixosModules.sops @@ -128,6 +134,9 @@ homeManager.url = "github:nix-community/home-manager/release-24.11"; homeManager.inputs.nixpkgs.follows = "nixpkgs"; + homeManagerUnstable.url = "github:nix-community/home-manager/master"; + homeManagerUnstable.inputs.nixpkgs.follows = "nixpkgsUnstable"; + lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1"; lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; lanzaboote.inputs.flake-parts.follows = "flakeParts";