From 40d6a40b1de18f28003c4aa5f36d9b4b0ef4afdd Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Jul 2025 13:00:38 -0700 Subject: move all profiles, modules, and flakes to top-level --- scripts/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 scripts/default.nix (limited to 'scripts/default.nix') 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 [ ]); +} -- cgit v1.2.3