treewide: use services.getty option

services.mingetty is equivalent but deprecated.
This commit is contained in:
Erik Arvstedt 2021-08-05 00:48:58 +02:00
parent a25ceecca5
commit 0ef66c920b
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
config = {
virtualisation.graphics = false;
services.mingetty.autologinUser = "root";
services.getty.autologinUser = "root";
users.users.root = {
openssh.authorizedKeys.keyFiles = [ ./id-vm.pub ];
};

View File

@ -69,7 +69,7 @@ name: testConfig:
"${toString pkgs.path}/nixos/modules/virtualisation/qemu-vm.nix"
];
virtualisation.graphics = false;
services.mingetty.autologinUser = "root";
services.getty.autologinUser = "root";
# Provide a shortcut for instant poweroff from within the machine
environment.systemPackages = with pkgs; [