Compare commits

..

1 commit

Author SHA1 Message Date
74ac2c76d3 remove nixpkgs overwrite 2025-11-26 03:15:33 +01:00

View file

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