nixos/proxmox-lxc: allow importing module without activation, for used in mixed machine clusters

This commit is contained in:
Brendan Golden 2023-11-15 23:59:56 +00:00 committed by Brendan Golden
parent 68a8d51fa9
commit c20f3b70ab

View File

@ -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;