nix-infra/modules/nixos/default-container.nix

41 lines
927 B
Nix

# https://wiki.nixos.org/wiki/Proxmox_Virtual_Environment#LXC
{ modulesPath, pkgs, ... }:
{
imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix")
];
# Host platform architecture
# Technically not needed, but nix complains if not present
nixpkgs.hostPlatform = "x86_64-linux";
# Proxmox LXC container settings
# Set to true only if running a privileged container (enables debugfs)
proxmoxLXC = {
privileged = false;
manageNetwork = false; # Set to false to let Proxmox manage network via systemd-networkd (default: false)
};
time.timeZone = "Europe/Berlin";
environment.systemPackages = [
pkgs.git
];
# Enable Flakes and new Nix CLI
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix.optimise.automatic = true;
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "daily";
options = "-d";
};
}