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,28 @@
{ config, pkgs, lib, ... }: {
imports = [ ../common/common.nix ../common/generic-vm.nix ];
proxmox.qemuConf = {
virtio0 = "local-zsfs:vm-9999-disk-0";
cores = 1;
memory = 1024;
bios = "ovmf";
};
# 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";
}