diff options
Diffstat (limited to '')
| -rw-r--r-- | scripts/default.nix (renamed from nix/scripts/default.nix) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nix/scripts/default.nix b/scripts/default.nix index 90851df..bf91760 100644 --- a/nix/scripts/default.nix +++ b/scripts/default.nix @@ -2,19 +2,23 @@ pkgs, system, inputs, + self, }: let common = import ./common.nix { inherit pkgs; }; + infra = import ./infra.nix { inherit self pkgs; }; darwin = import ./darwin.nix { inherit pkgs system inputs; }; linux = import ./linux.nix { inherit pkgs system inputs; }; in { common = common; + infra = infra; darwin = if pkgs.lib.hasSuffix "darwin" system then darwin else [ ]; linux = if pkgs.lib.hasSuffix "linux" system then linux else [ ]; all = common + ++ infra ++ (if pkgs.lib.hasSuffix "darwin" system then darwin else [ ]) ++ (if pkgs.lib.hasSuffix "linux" system then linux else [ ]); } |
