mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
abstractions ftw
This commit is contained in:
parent
e0a862ce4d
commit
aaede70323
1 changed files with 4 additions and 14 deletions
|
@ -21,9 +21,10 @@ let
|
|||
hostPath = host: ../. + "/hosts/${host}";
|
||||
# all nix files not including pkgs.nix
|
||||
# hostFiles = host: filter isNixFile (listFilesRecursive (hostPath host));
|
||||
|
||||
hostFiles = host: host |> hostPath |> listFilesRecursive |> filter isNixFile;
|
||||
|
||||
commonSpecialArgs = {inherit self inputs lib enabled;};
|
||||
|
||||
mkIso = nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
|
@ -32,14 +33,7 @@ let
|
|||
self.nixosModules.essentials
|
||||
self.nixosModules.iso
|
||||
];
|
||||
specialArgs = {
|
||||
inherit
|
||||
inputs
|
||||
lib
|
||||
self
|
||||
enabled
|
||||
;
|
||||
};
|
||||
specialArgs = commonSpecialArgs;
|
||||
};
|
||||
|
||||
mkSystem =
|
||||
|
@ -53,14 +47,10 @@ let
|
|||
inputs.hyprland.nixosModules.default
|
||||
] ++ (hostFiles hostName);
|
||||
|
||||
specialArgs = {
|
||||
specialArgs = commonSpecialArgs // {
|
||||
inherit
|
||||
inputs
|
||||
lib
|
||||
self
|
||||
mkDefaultOizysModule
|
||||
mkOizysModule
|
||||
enabled
|
||||
enableAttrs
|
||||
hostName
|
||||
flake
|
||||
|
|
Loading…
Reference in a new issue