From ed26bc5931ec487ee1f5622e6bac02e8f75377a6 Mon Sep 17 00:00:00 2001 From: Dmitry Moskowski Date: Sun, 24 Dec 2017 14:57:14 +0000 Subject: [PATCH] sshd: Start after network target --- nixos/modules/services/networking/ssh/sshd.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index f0fddcca766f..aa9c0fa1c09f 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -248,13 +248,10 @@ in let service = { description = "SSH Daemon"; - wantedBy = optional (!cfg.startWhenNeeded) "multi-user.target"; - + after = [ "network.target" ]; stopIfChanged = false; - path = [ cfgc.package pkgs.gawk ]; - environment.LD_LIBRARY_PATH = nssModulesPath; preStart =