diff --git a/configuration.nix b/configuration.nix index 58e2d74..7419a5b 100644 --- a/configuration.nix +++ b/configuration.nix @@ -41,7 +41,7 @@ in enableContainers = true; }; - networking.hostName = "nix"; # Define your hostname. + networking.hostName = "twilight"; # Define your hostname. # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; @@ -164,6 +164,9 @@ in description = "mehbark"; extraGroups = [ "networkmanager" "wheel" "tty" ]; hashedPassword = "$6$AgDjrnyBPBpfMpB1$NxjyeU/WxsOXrY7KpnJethtGz28LO.hNARG5J8adIoxDFkBVG/H9wJEiG0A09E7JgguoPxFWmwYIBQLTbknVv1"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICyTxPV3S7ms0AJ0tduI3aJP3o2TJCnkirWKaj5i1+DW" + ]; }; virtualisation.vmVariant = { @@ -180,9 +183,11 @@ in services.openssh = { enable = true; - settings.PasswordAuthentication = true; + settings.PasswordAuthentication = false; }; + services.tailscale.enable = true; + networking.firewall.allowedTCPPorts = [ 22 8384 22000 ]; networking.firewall.allowedUDPPorts = [ 22000 21027 ];