nix-config/nix/generate-node.nix

20 lines
336 B
Nix

{self, ...} @ inputs: {
name,
# Additional modules to import
modules ? [],
system,
...
}: {
inherit system;
pkgs = self.pkgs.${system};
specialArgs = {
inherit (self.pkgs.${system}) lib;
inherit (self) nodes stateVersion;
inherit
inputs
;
};
imports =
modules ++ [{node.name = name;}];
}