refactor templates

This commit is contained in:
Vivian 2023-01-07 12:52:42 +01:00
parent bcc1aaff1f
commit 576b6963e3
6 changed files with 65 additions and 21 deletions

View file

@ -0,0 +1,27 @@
{ config, pkgs, lib, ... }: {
imports = [ ../common/common.nix ../common/generic-lxc.nix ];
proxmoxLXC = {
manageNetwork = true;
manageHostName = true;
privileged = false;
};
# Enable SSH
services.openssh = {
enable = true;
passwordAuthentication = false;
permitRootLogin = "yes";
openFirewall = true;
};
networking.hostName = lib.mkDefault "template";
time.timeZone = lib.mkDefault "Europe/Amsterdam";
networking.useDHCP = true;
system.stateVersion = "23.05";
users.users.root.initialPassword = "toor";
}