move more stuf out of flake.nix
This commit is contained in:
parent
0bb0018450
commit
6bfa995c4d
10 changed files with 180 additions and 112 deletions
26
nixosModules/pxvirt-guest.nix
Normal file
26
nixosModules/pxvirt-guest.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ modulesPath, lib, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ];
|
||||
|
||||
config = {
|
||||
# TODO is this needed?
|
||||
# nix.settings.sandbox = false;
|
||||
|
||||
proxmoxLXC = {
|
||||
manageNetwork = false;
|
||||
privileged = false;
|
||||
};
|
||||
|
||||
# Let Proxmox host handle fstrim
|
||||
services.fstrim.enable = false;
|
||||
|
||||
# TODO is this needed
|
||||
# Cache DNS lookups to improve performance
|
||||
services.resolved.extraConfig = ''
|
||||
Cache=true
|
||||
CacheFromLocalhost=true
|
||||
'';
|
||||
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue