From c20f3b70abe262daa3eaad9c4a79cb0ddc70e9f2 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 15 Nov 2023 23:59:56 +0000 Subject: [PATCH] nixos/proxmox-lxc: allow importing module without activation, for used in mixed machine clusters --- nixos/modules/virtualisation/proxmox-lxc.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/proxmox-lxc.nix b/nixos/modules/virtualisation/proxmox-lxc.nix index ff1c0972166c..751e09c43a9e 100644 --- a/nixos/modules/virtualisation/proxmox-lxc.nix +++ b/nixos/modules/virtualisation/proxmox-lxc.nix @@ -4,6 +4,11 @@ with lib; { options.proxmoxLXC = { + enable = mkOption { + default = true; + type = types.bool; + description = lib.mdDoc "Whether to enable the Proxmox VE LXC module."; + }; privileged = mkOption { type = types.bool; default = false; @@ -35,7 +40,7 @@ with lib; let cfg = config.proxmoxLXC; in - { + mkIf cfg.enable { system.build.tarball = pkgs.callPackage ../../lib/make-system-tarball.nix { storeContents = [{ object = config.system.build.toplevel;