aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2018-07-21 13:15:34 +0200
committerRobert Helgesson <robert@rycee.net>2018-07-21 13:15:34 +0200
commit9570cedff62a6d08eb13f8c6164b496ff88c834f (patch)
treed7a51843c29eb4340049a60efe20eff9fb8bce62 /nixos
parentd3871ed77447fdebe3673b69df7d75589378c53b (diff)
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.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/default.nix b/nixos/default.nix
index d72d8a19557..c101f5a981d 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;