nixos-anywhere/tests/modules/installed.nix
2022-12-30 19:39:20 +01:00

13 lines
373 B
Nix

{
virtualisation.memorySize = 4096;
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keyFiles = [ ./ssh-keys/ssh.pub ];
users.users.nixos = {
isNormalUser = true;
openssh.authorizedKeys.keyFiles = [ ./ssh-keys/ssh.pub ];
extraGroups = [ "wheel" ];
};
security.sudo.enable = true;
security.sudo.wheelNeedsPassword = false;
}