Compare commits

..

1 commit

Author SHA1 Message Date
7ad8bb3192 remove nixpkgs overwrite 2025-11-26 03:05:20 +01:00

View file

@ -1,15 +1,19 @@
{ nixosUsers ? {}, nixosGroups ? {}, nixosModules, hmModules ? { default = {}; }, ...}@flake: { nixpkgs, ... }@inputs: { host, ... }@imports: let { nixosUsers ? {}, nixosGroups ? {}, nixosModules, hmModules ? { default = {}; }, ...}@flake: { nixpkgs, ... }@inputs: { host, ... }@imports: let
system = hostname: { namespace?"fbs42" }: nixpkgs.lib.nixosSystem { host' = name: snippets: let
specialArgs = { inherit inputs flake namespace; }; system = { namespace?"fbs42" }: nixpkgs.lib.nixosSystem {
modules = builtins.concatLists (map (base: builtins.attrValues (flake.lib.scan { base = "${base}/host/${hostname}"; })) flake.lib.schema.base) specialArgs = { inherit inputs flake namespace; };
++ [ { config.networking.hostName = hostname; } ] modules = builtins.concatLists (map (base: builtins.attrValues (flake.lib.scan { base = "${base}/host/${name}"; })) flake.lib.schema.base)
++ [ nixosModules.default ] ++ [ { config.networking.hostName = name; } ]
++ [ inputs.home-manager.nixosModules.default ] ++ [ nixosModules.default ]
++ [ { config.home-manager.sharedModules = [ hmModules.default ]; } ] ++ [ inputs.home-manager.nixosModules.default ]
++ [ { config.home-manager.extraSpecialArgs = { inherit flake namespace; }; } ] ++ [ { config.home-manager.sharedModules = [ hmModules.default ]; } ]
++ builtins.attrValues nixosUsers ++ [ { config.home-manager.extraSpecialArgs = { inherit flake namespace; }; } ]
++ builtins.attrValues nixosGroups ++ builtins.attrValues nixosUsers
; ++ builtins.attrValues nixosGroups
}; ;
};
in builtins.mapAttrs (hostname: snippets: assert builtins.length snippets == 1; system hostname (builtins.head snippets)) host cfg = assert builtins.length snippets == 1; builtins.head snippets;
in system cfg;
in builtins.mapAttrs host' host