aboutsummaryrefslogtreecommitdiff
path: root/scripts/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/default.nix')
-rw-r--r--scripts/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/default.nix b/scripts/default.nix
new file mode 100644
index 0000000..bf91760
--- /dev/null
+++ b/scripts/default.nix
@@ -0,0 +1,24 @@
+{
+ 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 [ ]);
+}