From eed97c13a2d9dfe22b0381b781bb6318d4b86e39 Mon Sep 17 00:00:00 2001 From: sajenim Date: Fri, 1 Dec 2023 05:52:42 +0800 Subject: [PATCH] enable sshd --- nixos/fuchsia/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/fuchsia/configuration.nix b/nixos/fuchsia/configuration.nix index 25d30d7..e6e5879 100644 --- a/nixos/fuchsia/configuration.nix +++ b/nixos/fuchsia/configuration.nix @@ -191,6 +191,16 @@ }; services = { + # This setups a SSH server. Very important if you're setting up a headless system. + # Feel free to remove if you don't need it. + openssh = { + enable = true; + # Forbid root login through SSH. + settings.PermitRootLogin = "no"; + # Use keys only. Remove if you want to SSH using password (not recommended) + settings.PasswordAuthentication = false; + }; + udev.packages = with pkgs; [ yubikey-personalization openrgb