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
flake-parts.lib.mkFlake { inherit inputs; } {
systems = mySystems;
imports = [
./lib.nix
./nixos.nix
./overlays.nix
];
flake = (eachMySystem systemDependant) // systemIndependant;
flake = (eachMySystem systemDependant);
}

View file

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