flake: nixos: convert to 'flake-parts'

This commit is contained in:
Bruno BELANYI 2023-03-08 17:53:21 +00:00
parent b2f3bc955c
commit 730e4abf17
2 changed files with 9 additions and 10 deletions

View file

@ -69,18 +69,15 @@ let
}; };
}; };
}; };
systemIndependant = {
nixosConfigurations = import ./nixos.nix inputs;
};
in in
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
systems = mySystems; systems = mySystems;
imports = [ imports = [
./lib.nix ./lib.nix
./nixos.nix
./overlays.nix ./overlays.nix
]; ];
flake = (eachMySystem systemDependant) // systemIndependant; flake = (eachMySystem systemDependant);
} }

View file

@ -1,4 +1,4 @@
{ self, nixpkgs, nur, ... } @ inputs: { self, inputs, ... }:
let let
inherit (self) lib; inherit (self) lib;
@ -9,7 +9,7 @@ let
}) })
{ {
nixpkgs.overlays = (lib.attrValues self.overlays) ++ [ nixpkgs.overlays = (lib.attrValues self.overlays) ++ [
nur.overlay inputs.nur.overlay
]; ];
} }
# Include generic settings # Include generic settings
@ -31,7 +31,9 @@ let
}; };
}; };
in in
lib.mapAttrs buildHost { {
aramis = "x86_64-linux"; flake.nixosConfigurations = lib.mapAttrs buildHost {
porthos = "x86_64-linux"; aramis = "x86_64-linux";
porthos = "x86_64-linux";
};
} }