diff --git a/wohnzimmer/configuration.nix b/wohnzimmer/configuration.nix index ac72c4b..abb5370 100644 --- a/wohnzimmer/configuration.nix +++ b/wohnzimmer/configuration.nix @@ -57,6 +57,10 @@ # Enable networking networking.networkmanager.enable = true; + networking.firewall.allowedTCPPorts = [ + 22 + ]; + nix = { extraOptions = '' experimental-features = nix-command flakes impure-derivations ca-derivations @@ -99,6 +103,10 @@ "wheel" ]; packages = with pkgs; [ ]; + + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINGHadFhDCUU/ta3p1FQgpm7NExHkyHNrJbNJP6np5w9 kempinger@ins.jku.at" + ]; }; # Allow unfree packages @@ -135,6 +143,14 @@ enable = true; xwayland.enable = true; }; + services.openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + PermitRootLogin = "prohibit-password"; # Allow root with SSH keys only + }; + }; programs.firefox.enable = true; programs.fish.enable = true;