Better proxmox LXC declaration

This commit is contained in:
Théo Barnouin 2024-12-12 11:14:01 +01:00
parent 87d98e8410
commit 93b85f705f
2 changed files with 9 additions and 2 deletions

View file

@ -24,8 +24,8 @@
nix.gc = { nix.gc = {
automatic = true; automatic = true;
dates = "weekly"; dates = "daily";
options = "--delete-older-than 7d"; options = "--delete-old";
}; };
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;

View file

@ -7,6 +7,13 @@ in
enable = lib.mkEnableOption "Enable LXC container config"; enable = lib.mkEnableOption "Enable LXC container config";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
boot.isContainer = true;
proxmoxLXC = {
enable = true;
privileged = false;
manageNetwork = true;
manageHostName = true;
};
systemd.suppressedSystemUnits = [ systemd.suppressedSystemUnits = [
"dev-mqueue.mount" "dev-mqueue.mount"
"sys-kernel-debug.mount" "sys-kernel-debug.mount"