From 5e5b5322f6b648ab01bf204e9e655721d748f7e8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 9 Dec 2024 08:06:21 -0800 Subject: set hostname and correct ssh key --- nix/machines/vm-shared.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nix/machines/vm-shared.nix') 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 -- cgit 1.4.1