nixos-hypervisor/systems/lxc.nix
2024-10-16 14:33:27 +02:00

19 lines
424 B
Nix

{ inputs, lib, config, modulesPath, ... }:
let
cfg = config.services.vm;
in
{
options.services.ct = {
enable = lib.mkEnableOption "Enable LXC container config";
};
config = lib.mkIf cfg.enable {
imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ];
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
};
}