mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
13 lines
373 B
Nix
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;
|
|
}
|