mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 10:10:45 -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) hasSuffix nixosSystem;
|
||||||
inherit (nixpkgs.lib.filesystem) listFilesRecursive;
|
inherit (nixpkgs.lib.filesystem) listFilesRecursive;
|
||||||
in rec {
|
in rec {
|
||||||
|
isNixFile = path: hasSuffix ".nix" path;
|
||||||
|
|
||||||
mkSystem = hostname:
|
mkSystem = hostname:
|
||||||
nixosSystem {
|
nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules =
|
modules =
|
||||||
builtins.filter
|
builtins.filter isNixFile (listFilesRecursive (../. + "/hosts/${hostname}"));
|
||||||
(path: hasSuffix ".nix" path) (listFilesRecursive (../. + "/hosts/${hostname}"));
|
|
||||||
specialArgs = {inherit inputs;};
|
specialArgs = {inherit inputs;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue