about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-23 00:35:45 +0900
committersefidel <contact@sefidel.net>2024-01-23 01:05:04 +0900
commit12ac17cc96040cc0ba150dea25b6bcd727fbf9e3 (patch)
tree1932a80a6e480f95d1c77377be2b8cb1f1f35ea7 /lib
parent686390149fb250054fea5de87a068adc44b0e394 (diff)
downloadnixrc-12ac17cc96040cc0ba150dea25b6bcd727fbf9e3.tar.gz
nixrc-12ac17cc96040cc0ba150dea25b6bcd727fbf9e3.zip
feat(lib/mk_system): let colmena deployment options to be set without breaking eval
Diffstat (limited to 'lib')
-rw-r--r--lib/mk_system.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mk_system.nix b/lib/mk_system.nix
index ff51fef..70149fe 100644
--- a/lib/mk_system.nix
+++ b/lib/mk_system.nix
@@ -1,4 +1,4 @@
-{ self, unstable, ... } @ args:
+{ self, unstable, colmena, ... } @ args:
 {
   mkSystem = { name, nixpkgs ? unstable, system ? "x86_64-linux", overlays ? null, extraModules ? null }:
     nixpkgs.lib.nixosSystem (
@@ -27,6 +27,9 @@
           ../modules/nixpkgs.nix
         ] ++ nixpkgs.lib.optional (overlays != null) { nixpkgs.overlays = overlays; }
         ++ nixpkgs.lib.optionals (extraModules != null) extraModules;
+
+        # let deployment options to be set without breaking eval on nixosConfigurations
+        extraModules = [ colmena.nixosModules.deploymentOptions ];
       }
     );