From 6fdb1cd520af12bda37d6378ad28d3b166e8ac87 Mon Sep 17 00:00:00 2001 From: noe Date: Sat, 23 Dec 2023 02:16:31 -0500 Subject: [PATCH] getty by default --- nixos/templates/proxmox-lxc.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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"; + }; }