flake.nix: add func to build using nixpkgs unstable

This commit is contained in:
oysteikt 2023-07-10 00:02:01 +02:00 committed by h7x4
parent 34a16149f8
commit bb9f1c8b2f
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146
1 changed files with 11 additions and 5 deletions

View File

@ -20,7 +20,7 @@
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in { in {
nixosConfigurations = let nixosConfigurations = let
nixosConfig = name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate nixosConfig = nixpkgs: name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
rec { rec {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { specialArgs = {
@ -45,8 +45,10 @@
config config
); );
stableNixosConfig = nixosConfig nixpkgs;
unstableNixosConfig = nixosConfig unstable;
in { in {
bicep = nixosConfig "bicep" { bicep = stableNixosConfig "bicep" {
modules = [ modules = [
./hosts/bicep/configuration.nix ./hosts/bicep/configuration.nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
@ -54,9 +56,13 @@
matrix-next.nixosModules.synapse matrix-next.nixosModules.synapse
]; ];
}; };
bekkalokk = nixosConfig "bekkalokk" { }; bekkalokk = stableNixosConfig "bekkalokk" { };
# greddost = nixosConfig "greddost" { }; greddost = stableNixosConfig "greddost" { };
ildkule = nixosConfig "ildkule" { }; ildkule = stableNixosConfig "ildkule" { };
ildkule-unstable = unstableNixosConfig "ildkule" { };
jokum = stableNixosConfig "jokum" {
modules = [ matrix-next.nixosModules.synapse ];
};
}; };
devShells = forAllSystems (system: { devShells = forAllSystems (system: {