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.
This commit is contained in:
Robert Helgesson 2018-07-21 13:15:34 +02:00
parent d3871ed774
commit 9570cedff6
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -36,6 +36,8 @@ in
nameValuePair ("home-manager-${utils.escapeSystemdPath username}") { nameValuePair ("home-manager-${utils.escapeSystemdPath username}") {
description = "Home Manager environment for ${username}"; description = "Home Manager environment for ${username}";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ "nix-daemon.socket" ];
after = [ "nix-daemon.socket" ];
serviceConfig = { serviceConfig = {
User = username; User = username;