mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
fix disko generation
This commit is contained in:
parent
5a6d712c2e
commit
9a6522d05c
4 changed files with 25 additions and 20 deletions
|
|
@ -1,4 +1,9 @@
|
|||
inputs@{ unstable, self, ... }:
|
||||
inputs@{
|
||||
unstable,
|
||||
self,
|
||||
disko,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (unstable) lib;
|
||||
|
||||
|
|
@ -62,12 +67,23 @@ in
|
|||
networking.hostName = name;
|
||||
nixpkgs.hostPlatform = system;
|
||||
})
|
||||
(lib.optionals (self.diskoConfigurations ? "disko-${name}") [
|
||||
self.diskoConfigurations."disko-${name}"
|
||||
disko.nixosModules.default
|
||||
])
|
||||
];
|
||||
}
|
||||
);
|
||||
mkDisko =
|
||||
names:
|
||||
lib.genAttrs names (name: (import "${self}/hosts/${name}/disko.nix" inputs));
|
||||
lib.listToAttrs (
|
||||
map
|
||||
(name: {
|
||||
name = "disko-${name}";
|
||||
value.disko.devices = import "${self}/disko/${name}.nix" lib;
|
||||
})
|
||||
names
|
||||
);
|
||||
|
||||
mkPackages =
|
||||
path: pkgs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue