From feb30a45bfd626cc495690bf8eec354d5bb43b5c Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Mon, 2 Sep 2024 21:23:04 -0500 Subject: [PATCH] added ssh to defiant --- hosts/defiant/configuration.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/defiant/configuration.nix b/hosts/defiant/configuration.nix index dbf4347..b5276c8 100644 --- a/hosts/defiant/configuration.nix +++ b/hosts/defiant/configuration.nix @@ -40,6 +40,19 @@ services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.xterm.enable = false; + # temp enable password auth over ssh for setup + services.openssh = { + enable = true; + ports = [ 22 ]; + settings = { + PasswordAuthentication = true; + AllowUsers = [ "leyla" ]; # Allows all users by default. Can be [ "user1" "user2" ] + UseDns = true; + X11Forwarding = false; + PermitRootLogin = "without-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no" + }; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave