From 1632f2a06258803c8d8b0608e35704e6a0a1e312 Mon Sep 17 00:00:00 2001 From: joy Date: Sun, 18 Aug 2024 14:59:43 +0200 Subject: [PATCH] shh --- modules/default.nix | 1 + modules/misc/default.nix | 1 - modules/packages/default.nix | 1 + modules/ssh/default.nix | 13 +++++++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 modules/ssh/default.nix diff --git a/modules/default.nix b/modules/default.nix index 3d8f6fc..bdc7839 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -14,5 +14,6 @@ ./appimage ./update ./polkit + ./ssh ]; } diff --git a/modules/misc/default.nix b/modules/misc/default.nix index 62c0051..f0406f1 100644 --- a/modules/misc/default.nix +++ b/modules/misc/default.nix @@ -26,5 +26,4 @@ time.timeZone = "Europe/Zurich"; system.stateVersion = "23.11"; home-manager.backupFileExtension = "backup"; - services.openssh.enable = true; } diff --git a/modules/packages/default.nix b/modules/packages/default.nix index 5468439..998f44f 100644 --- a/modules/packages/default.nix +++ b/modules/packages/default.nix @@ -48,5 +48,6 @@ lm_sensors brightnessctl networkmanagerapplet + ncdu ]; } diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix new file mode 100644 index 0000000..d871699 --- /dev/null +++ b/modules/ssh/default.nix @@ -0,0 +1,13 @@ +{ ... }: +{ + services.openssh = { + enable = true; + authorizedKeysFiles = [ + + ]; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + }; +}; +}