From 0df361b5c372d3d43cf59588783f2da5d1750ce7 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 4 Aug 2017 13:09:52 +0200 Subject: [PATCH] Set up SSH server on desktop --- systems/desktop.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/systems/desktop.nix b/systems/desktop.nix index 7c5c8cd..ba2edf6 100644 --- a/systems/desktop.nix +++ b/systems/desktop.nix @@ -149,5 +149,15 @@ in { }; };*/ + services.openssh = { + enable = true; + passwordAuthentication = false; + challengeResponseAuthentication = false; + }; + + users.users.root.openssh.authorizedKeys.keys = [ + (builtins.readFile ../private/joepie91.pub) + ]; + nix.useSandbox = true; }