From c214a560f0500e4be077086e557c3e6d336c7c27 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 7 Jul 2025 16:03:51 -0700 Subject: move scripts managed by nix out of the flake In order to keep the flake readable, the various scripts managed by nix are now moved to their own files under `nix/scripts`. --- nix/scripts/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nix/scripts/default.nix (limited to 'nix/scripts/default.nix') diff --git a/nix/scripts/default.nix b/nix/scripts/default.nix new file mode 100644 index 0000000..90851df --- /dev/null +++ b/nix/scripts/default.nix @@ -0,0 +1,20 @@ +{ + pkgs, + system, + inputs, +}: +let + common = import ./common.nix { inherit pkgs; }; + darwin = import ./darwin.nix { inherit pkgs system inputs; }; + linux = import ./linux.nix { inherit pkgs system inputs; }; +in +{ + common = common; + darwin = if pkgs.lib.hasSuffix "darwin" system then darwin else [ ]; + linux = if pkgs.lib.hasSuffix "linux" system then linux else [ ]; + + all = + common + ++ (if pkgs.lib.hasSuffix "darwin" system then darwin else [ ]) + ++ (if pkgs.lib.hasSuffix "linux" system then linux else [ ]); +} -- cgit v1.2.3