infrastructure/nixos/proxmox-lxc.nix

28 lines
549 B
Nix
Raw Normal View History

2022-10-15 13:44:27 +02:00
{ config, pkgs, lib, ... }: {
2022-10-31 10:41:17 +01:00
imports = [ ./common/common.nix ./common/generic-lxc.nix ];
2022-10-15 13:44:27 +02:00
2022-10-31 10:41:17 +01:00
proxmoxLXC = {
manageNetwork = true;
manageHostName = true;
privileged = false;
};
2022-10-15 13:44:27 +02:00
# Enable SSH
services.openssh = {
enable = true;
passwordAuthentication = false;
permitRootLogin = "yes";
2022-10-31 10:41:17 +01:00
openFirewall = true;
2022-10-15 13:44:27 +02:00
};
2022-10-17 11:55:27 +02:00
networking.hostName = "template";
2022-10-15 13:44:27 +02:00
time.timeZone = lib.mkDefault "Europe/Amsterdam";
2022-10-31 10:41:17 +01:00
networking.useDHCP = true;
2022-10-15 13:44:27 +02:00
system.stateVersion = "22.11";
2022-10-31 10:41:17 +01:00
users.users.root.initialPassword = "toor";
2022-10-15 13:44:27 +02:00
}