mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
bunch of small changes
This commit is contained in:
parent
b99f465861
commit
75a4e0a52a
5 changed files with 57 additions and 41 deletions
|
|
@ -55,15 +55,15 @@ in
|
|||
lib.evalModules {
|
||||
specialArgs.modulesPath = "${unstable}/nixos/modules";
|
||||
|
||||
modules =
|
||||
builtins.attrValues self.nixosModules
|
||||
++ importAll "${self}/hosts/${name}"
|
||||
++ [ {
|
||||
modules = builtins.concatLists [
|
||||
(builtins.attrValues self.nixosModules)
|
||||
(importAll "${self}/hosts/${name}")
|
||||
(import "${unstable}/nixos/modules/module-list.nix")
|
||||
(lib.singleton {
|
||||
networking.hostName = name;
|
||||
nixpkgs.hostPlatform = system;
|
||||
} ]
|
||||
++ (import "${unstable}/nixos/modules/module-list.nix")
|
||||
;
|
||||
})
|
||||
];
|
||||
}
|
||||
);
|
||||
mkDisko =
|
||||
|
|
@ -72,13 +72,15 @@ in
|
|||
|
||||
mkPackages =
|
||||
path: pkgs:
|
||||
builtins.listToAttrs (
|
||||
map
|
||||
(module: {
|
||||
name = lib.removeSuffix ".nix" (builtins.baseNameOf module);
|
||||
value = pkgs.callPackage module { };
|
||||
})
|
||||
(listNixFilesRecursive path)
|
||||
);
|
||||
lib.pipe path [
|
||||
listNixFilesRecursive
|
||||
(map (
|
||||
x: {
|
||||
name = lib.removeSuffix ".nix" (builtins.baseNameOf x);
|
||||
value = pkgs.callPackage x { };
|
||||
}
|
||||
))
|
||||
builtins.listToAttrs
|
||||
];
|
||||
_file = ./default.nix;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue