nixos-hypervisor/services/minimalConfig/lxc.nix

17 lines
345 B
Nix
Raw Normal View History

{lib, config, modulesPath, ...}:
2024-10-16 14:33:27 +02:00
let
2024-11-28 09:47:45 +01:00
cfg = config.services.lxc;
2024-10-16 14:33:27 +02:00
in
{
2024-11-28 09:47:45 +01:00
options.services.lxc = {
2024-10-16 14:33:27 +02:00
enable = lib.mkEnableOption "Enable LXC container config";
};
config = lib.mkIf cfg.enable {
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
};
}