diff --git a/nixos/templates/proxmox-lxc.nix b/nixos/templates/proxmox-lxc.nix index 8e6fa9b..846ea11 100644 --- a/nixos/templates/proxmox-lxc.nix +++ b/nixos/templates/proxmox-lxc.nix @@ -1,14 +1,20 @@ -{ pkgs, config, modulesPath, ... }: { +{ pkgs, config, modulesPath, lib, ... }: { imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ]; system.stateVersion = "24.05"; - users.users.root.hashedPassword = "$y$j9T$kWYIRHrwP1uXV.l4vTJ67/$VGkvX09rzebYPWRI5vk0Z/IDo434bBaIqUutWp4l0L2"; # hmmmm + users.users.root.hashedPassword = "$y$j9T$kWYIRHrwP1uXV.l4vTJ67/$VGkvX09rzebYPWRI5vk0Z/IDo434bBaIqUutWp4l0L2"; users.users.root.openssh.authorizedKeys.keys = import ../users/noe-keys.nix; environment.systemPackages = with pkgs; [ bashInteractive ]; + + systemd.services."getty@tty1" = { + enable = lib.mkForce true; + wantedBy = [ "getty.target" ]; + serviceConfig.Restart = "always"; + }; }