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 = {
|
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;
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue