diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-06-08 17:11:30 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-06-10 16:18:26 +0530 |
| commit | 969a9a311d24548c6632ddcdc4f903ffa48c5ca6 (patch) | |
| tree | 9e508610c3e077647cc39ceb398a8226be8c21d0 /modules/network/ssh.nix | |
| parent | 93179e7a79ca08464b9e443df41383b487bda7e8 (diff) | |
| download | homeserver-nixos-config-969a9a311d24548c6632ddcdc4f903ffa48c5ca6.tar.gz homeserver-nixos-config-969a9a311d24548c6632ddcdc4f903ffa48c5ca6.zip | |
Init commit with shit that does it
Diffstat (limited to 'modules/network/ssh.nix')
| -rw-r--r-- | modules/network/ssh.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/network/ssh.nix b/modules/network/ssh.nix new file mode 100644 index 0000000..e4e5b2a --- /dev/null +++ b/modules/network/ssh.nix @@ -0,0 +1,11 @@ +{ lib, ... }: +let + private = import ../../config.private.nix; +in { + services.sshd.enable = true; + + # Auth + # TODO: dont allow via password + # openssh.authorizedKeys.keys = private.ssh.authorizedKeys; + services.openssh.settings.PermitRootLogin = "yes"; +} |
