From 9570cedff62a6d08eb13f8c6164b496ff88c834f Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 21 Jul 2018 13:15:34 +0200 Subject: [PATCH] nixos module: we need a running nix-daemon Make sure the nix-daemon is prepared before we attempt to do the user activation otherwise the script may fail due to not being able to communicate. --- nixos/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index d72d8a19..c101f5a9 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -36,6 +36,8 @@ in nameValuePair ("home-manager-${utils.escapeSystemdPath username}") { description = "Home Manager environment for ${username}"; wantedBy = [ "multi-user.target" ]; + wants = [ "nix-daemon.socket" ]; + after = [ "nix-daemon.socket" ]; serviceConfig = { User = username;