Reorder settings in flake
This commit is contained in:
parent
92a4e3d332
commit
4141931c39
1 changed files with 45 additions and 46 deletions
27
flake.nix
27
flake.nix
|
@ -6,14 +6,7 @@
|
|||
flake-utils.url = "github:numtide/flake-utils?ref=b1d9ab70662946ef0850d488da1c9019f3a9752a";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
let
|
||||
systems = [
|
||||
{
|
||||
name = "nixos";
|
||||
}
|
||||
];
|
||||
in
|
||||
outputs = { self, nixpkgs, flake-utils }: (
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
|
@ -27,13 +20,18 @@
|
|||
];
|
||||
});
|
||||
}
|
||||
) //
|
||||
) // {
|
||||
nixosConfigurations =
|
||||
let
|
||||
systems = [
|
||||
{
|
||||
nixosConfigurations = builtins.listToAttrs
|
||||
(
|
||||
name = "nixos";
|
||||
}
|
||||
];
|
||||
in
|
||||
builtins.listToAttrs (
|
||||
builtins.map (
|
||||
{ name, system ? "x86_64-linux", ... }@config:
|
||||
{
|
||||
{ name, system ? "x86_64-linux", ... }@config: {
|
||||
inherit name;
|
||||
|
||||
value = nixpkgs.lib.nixosSystem {
|
||||
|
@ -46,6 +44,7 @@
|
|||
(
|
||||
let
|
||||
configCandidate = ./lib/machines/${name}.nix;
|
||||
|
||||
machineConfigPath =
|
||||
if builtins.pathExists configCandidate
|
||||
then
|
||||
|
@ -58,5 +57,5 @@
|
|||
};
|
||||
})
|
||||
systems);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue