From 9e7c4b8b16126caa91d6abd6358bdbb0109fcfd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Fri, 22 Mar 2024 23:32:48 +0100 Subject: [PATCH] flake: add and export "everything :tm:" --- flake.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 36bed58..28ab646 100644 --- a/flake.nix +++ b/flake.nix @@ -34,7 +34,7 @@ (removeSuffix ".nix" key) (import "${./modules}/${key}") ) (builtins.readDir ./modules); - in modules // (with modules; { + in modules // (with modules; rec { default = [ ansible-host base-tools @@ -44,6 +44,16 @@ ethtool-setringmax prometheus-exporter-gateway ]; + ansible_default = default ++ [ + nix-unify.nixosModules.ansible + ]; + unify_default = ansible_default ++ [ + nix-unify.nixosModules.unify + ]; + onlypath_default = [ + nix-unify.nixosModules.unify + onlypath + ]; }); checks = forAllSystems (system: @@ -58,7 +68,7 @@ (builtins.readDir ./tests)) // { onlypath = (pkgs.nixos { - imports = [ self.nixosModules.onlypath nix-unify.nixosModules.unify ]; + imports = self.nixosModules.onlypath_default; nixpkgs.hostPlatform = system; }).config.system.build.toplevel; }