From ae0a5ed8658065bfb515c013b4c753145b4aecfe Mon Sep 17 00:00:00 2001 From: Spectre Date: Sat, 8 Jun 2024 15:11:02 +0200 Subject: [PATCH] base --- flake.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index fd9aa27f..f2d944e2 100644 --- a/flake.nix +++ b/flake.nix @@ -64,12 +64,20 @@ mkHostConfig = host: import ./system (inputs // {conf = importHostConf host;}); in { - nixosConfigurations = builtins.listToAttrs ( - map (host: { - name = host; - value = (mkHostConfig host).build; - }) + nixosConfigurations = builtins.listToAttrs (lib.flatten ( + map (host: let + conf = mkHostConfig host; + in [ + { + name = host; + value = conf.full; + } + { + name = "${host}-base"; + value = conf.base; + } + ]) hosts - ); + )); }; }