From b29d90441f5100a398298dcdaf84f79b6fd6ec17 Mon Sep 17 00:00:00 2001 From: zackartz Date: Sat, 4 May 2024 00:15:42 -0400 Subject: [PATCH] add auth keys --- hosts/pluto/configuration.nix | 8 +++++++- modules/home-manager/applications.nix | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/pluto/configuration.nix b/hosts/pluto/configuration.nix index 6f5846b..de9a9ca 100644 --- a/hosts/pluto/configuration.nix +++ b/hosts/pluto/configuration.nix @@ -65,6 +65,9 @@ shell = pkgs.zsh; packages = with pkgs; []; hashedPassword = "$6$rounds=2000000$673Iz4rM8Dr9yz7C$Xq5JXxE7ioUrpZmMf3uTrPN2ODrEu3Sph6EhWyPoM5Ty./FhgB9hU0mz1yYo8sUj7wdUMWfR98haVJ24Wv3BK/"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICuUA9KTvcZ+ZTEO90y6VcmQyuwL30I2mOGsm8GZn7BF zack@mars" + ]; }; virtualisation.docker.enable = true; @@ -98,7 +101,10 @@ # List services that you want to enable: # Enable the OpenSSH daemon. - services.openssh.enable = true; + services.openssh = { + enable = true; + passwordAuthentication = false; + }; # Open ports in the firewall. networking.firewall.allowedTCPPorts = [80 443 6969 2022]; diff --git a/modules/home-manager/applications.nix b/modules/home-manager/applications.nix index 237269e..1516246 100644 --- a/modules/home-manager/applications.nix +++ b/modules/home-manager/applications.nix @@ -8,6 +8,7 @@ pkgs.slack pkgs.zoom-us + pkgs.elisa pkgs.prismlauncher pkgs.obs-studio