diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-09-07 14:22:22 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-09-16 22:10:13 +0000 |
commit | 790500b595b753de2d2be21ffc69387a06210f7f (patch) | |
tree | 64cff3da9c030839b632595bd69167c79a830f30 /modules/ssh/default.nix | |
parent | ed72c9fa82f43450f4a2ec4952ccfdb355411efa (diff) | |
download | nixlib-790500b595b753de2d2be21ffc69387a06210f7f.tar nixlib-790500b595b753de2d2be21ffc69387a06210f7f.tar.gz nixlib-790500b595b753de2d2be21ffc69387a06210f7f.tar.bz2 nixlib-790500b595b753de2d2be21ffc69387a06210f7f.tar.lz nixlib-790500b595b753de2d2be21ffc69387a06210f7f.tar.xz nixlib-790500b595b753de2d2be21ffc69387a06210f7f.tar.zst nixlib-790500b595b753de2d2be21ffc69387a06210f7f.zip |
modules/ssh: support SSH server
This isn't enabled on any machines yet, but it means that a machine wanting an SSH server would just have to enable the server and it would be configured correctly.
Diffstat (limited to 'modules/ssh/default.nix')
-rw-r--r-- | modules/ssh/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix index a321f9334608..747edaffb102 100644 --- a/modules/ssh/default.nix +++ b/modules/ssh/default.nix @@ -15,6 +15,10 @@ User git ''; + services.openssh.authorizedKeysFiles = [ "${./keys}/%u.keys" ]; + + users.users.root.openssh.authorizedKeys.keyFiles = [ ./keys/qyliss.keys ]; + programs.ssh.knownHosts = [ { hostNames = [ "github.com" ]; |