fix: simplify

This commit is contained in:
silver 2023-01-13 00:10:56 +00:00
parent c0691b8d8d
commit 566699f0b7

View file

@ -36,10 +36,10 @@
# need to extract teh name of the machiene
${config.name} = (
# nixpkgs.lib.nixosSystem is a fucntion that is used to turn a attribute set into the config for a machiene
nixpkgs.lib.nixosSystem (
# dont want to pass the field named 'name' into teh set
nixpkgs.lib.attrsets.filterAttrs (n: v: n != "name") config
)
nixpkgs.lib.nixosSystem {
system = config.system;
modules = modules.system;
}
);
}
);