mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
29
nixosConfigurations/_default.nix
Normal file
29
nixosConfigurations/_default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
self,
|
||||
unstable,
|
||||
disko,
|
||||
...
|
||||
}:
|
||||
let
|
||||
myLib = self.lib;
|
||||
inherit (unstable) lib;
|
||||
in
|
||||
lib.pipe ./. [
|
||||
builtins.readDir
|
||||
(lib.filterAttrs (_: v: v == "directory"))
|
||||
(builtins.mapAttrs (
|
||||
x: _:
|
||||
lib.evalModules {
|
||||
specialArgs.modulesPath = "${unstable}/nixos/modules";
|
||||
modules = builtins.concatLists [
|
||||
(builtins.attrValues self.nixosModules)
|
||||
(map myLib.addSchizophreniaToModule (myLib.listNixFilesRecursive (./. + "/${x}")))
|
||||
(import "${unstable}/nixos/modules/module-list.nix")
|
||||
(lib.optionals (self.diskoConfigurations ? "disko-${x}") [
|
||||
self.diskoConfigurations."disko-${x}"
|
||||
disko.nixosModules.default
|
||||
])
|
||||
];
|
||||
}
|
||||
))
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue