diff options
author | Franck Cuny <franck@fcuny.net> | 2024-12-09 08:06:21 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-12-09 08:06:21 -0800 |
commit | 5e5b5322f6b648ab01bf204e9e655721d748f7e8 (patch) | |
tree | 4084d13973eecd3128583d22510968f635cecc63 /nix/machines/vm-shared.nix | |
parent | move the configuration for hetzner under machines (diff) | |
download | world-5e5b5322f6b648ab01bf204e9e655721d748f7e8.tar.gz |
set hostname and correct ssh key
Diffstat (limited to 'nix/machines/vm-shared.nix')
-rw-r--r-- | nix/machines/vm-shared.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/machines/vm-shared.nix b/nix/machines/vm-shared.nix index bf26f38..0a1b4b2 100644 --- a/nix/machines/vm-shared.nix +++ b/nix/machines/vm-shared.nix @@ -13,8 +13,6 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "dev"; - time.timeZone = "America/Los_Angeles"; # Don't require password for sudo @@ -38,6 +36,10 @@ services.openssh.settings.PasswordAuthentication = true; services.openssh.settings.PermitRootLogin = "no"; + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi" + ]; + networking.firewall.enable = false; # This value determines the NixOS release from which the default |