mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
abstractions ?
This commit is contained in:
parent
21395ede95
commit
aa35b92429
1 changed files with 3 additions and 2 deletions
|
@ -7,12 +7,13 @@
|
|||
inherit (nixpkgs.lib) hasSuffix nixosSystem;
|
||||
inherit (nixpkgs.lib.filesystem) listFilesRecursive;
|
||||
in rec {
|
||||
isNixFile = path: hasSuffix ".nix" path;
|
||||
|
||||
mkSystem = hostname:
|
||||
nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules =
|
||||
builtins.filter
|
||||
(path: hasSuffix ".nix" path) (listFilesRecursive (../. + "/hosts/${hostname}"));
|
||||
builtins.filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
|
||||
specialArgs = {inherit inputs;};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue