From 66840230eaa08562de97b726972e198c306f4b55 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Sun, 25 Aug 2024 10:03:28 +0100 Subject: [PATCH] feat: Add `nixosConfig` option to `nixosGenerate` WIP! WIP! WIP! Currently doesn't work, but the idea is for an extra option (but not required) to `nixosGenerate` - a `nixosSystem`, which is then merged with the `image` attrset. --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7e402fb8..d741d238 100644 --- a/flake.nix +++ b/flake.nix @@ -65,6 +65,7 @@ pkgs ? null, lib ? nixpkgs.lib, nixosSystem ? nixpkgs.lib.nixosSystem, + nixosConfig ? { }, format, system ? null, specialArgs ? {}, @@ -100,7 +101,7 @@ formatModule ] ++ modules; - }; + } // nixosConfig; in image.config.system.build.${image.config.formatAttr}; }