Compare commits

..

1 Commits
main ... dev

Author SHA1 Message Date
transcaffeine 8331aa846f
feat: switch to automatic nixosConfiguration population 2025-04-02 20:39:49 +02:00
2 changed files with 3 additions and 6 deletions

View File

@ -6,9 +6,6 @@
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
];
imports = [
./hosts
];

View File

@ -6,15 +6,15 @@ let
lib.filterAttrs isDirectory (builtins.readDir ./.)
);
hosts = lib.genAttrs hostNames (name: {
modules = [
imports = [
(./. + "/${name}")
];
});
in
{
flake.nixosConfigurations = lib.mapAttrs (host: hostConfig: lib.nixosSystem {
inherit (hostConfig) modules;
nixosConfigurations = lib.mapAttrs (host: hostConfig: lib.nixosSystem {
system = "x86_64-linux";
modules = hostConfig;
specialArgs = { inherit inputs; };
}) hosts;
}