Better proxmox LXC declaration
This commit is contained in:
parent
87d98e8410
commit
93b85f705f
2 changed files with 9 additions and 2 deletions
|
@ -24,8 +24,8 @@
|
|||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
dates = "daily";
|
||||
options = "--delete-old";
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
|
|
@ -7,6 +7,13 @@ in
|
|||
enable = lib.mkEnableOption "Enable LXC container config";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.isContainer = true;
|
||||
proxmoxLXC = {
|
||||
enable = true;
|
||||
privileged = false;
|
||||
manageNetwork = true;
|
||||
manageHostName = true;
|
||||
};
|
||||
systemd.suppressedSystemUnits = [
|
||||
"dev-mqueue.mount"
|
||||
"sys-kernel-debug.mount"
|
||||
|
|
Loading…
Reference in a new issue