diff options
Diffstat (limited to 'nix/machines')
-rw-r--r-- | nix/machines/vm-aarch64.nix | 5 | ||||
-rw-r--r-- | nix/machines/vm-hetzner.nix | 2 | ||||
-rw-r--r-- | nix/machines/vm-shared.nix | 6 | ||||
-rw-r--r-- | nix/machines/vm-synology.nix | 5 |
4 files changed, 13 insertions, 5 deletions
diff --git a/nix/machines/vm-aarch64.nix b/nix/machines/vm-aarch64.nix index 1c2e479..ac9c74e 100644 --- a/nix/machines/vm-aarch64.nix +++ b/nix/machines/vm-aarch64.nix @@ -1 +1,4 @@ -{ ... }: { imports = [ ./hardware/vm-aarch64-utm.nix ./vm-shared.nix ]; } +{ ... }: { + imports = [ ./hardware/vm-aarch64-utm.nix ./vm-shared.nix ]; + networking.hostName = "vm-aarch64"; +} diff --git a/nix/machines/vm-hetzner.nix b/nix/machines/vm-hetzner.nix index 03c7135..a268779 100644 --- a/nix/machines/vm-hetzner.nix +++ b/nix/machines/vm-hetzner.nix @@ -4,7 +4,7 @@ boot.tmp.cleanOnBoot = true; zramSwap.enable = true; - networking.hostName = "fcuny"; + networking.hostName = "vm-hetzner"; networking.domain = "net"; users.users.root.openssh.authorizedKeys.keys = [ 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 diff --git a/nix/machines/vm-synology.nix b/nix/machines/vm-synology.nix index a38af50..643c821 100644 --- a/nix/machines/vm-synology.nix +++ b/nix/machines/vm-synology.nix @@ -1 +1,4 @@ -{ ... }: { imports = [ ./hardware/vm-synology.nix ./vm-shared.nix ]; } +{ ... }: { + imports = [ ./hardware/vm-synology.nix ./vm-shared.nix ]; + networking.hostName = "vm-synology"; +} |