switch-to-configuration.pl: activate the nixos-activation.service user service

This commit is contained in:
Peter Hoeg 2018-10-05 10:06:18 +08:00
parent 1353ba2678
commit 8118d6eb2e

View File

@ -420,6 +420,7 @@ while (my $f = <$listActiveUsers>) {
print STDERR "reloading user units for $name...\n";
system("su", "-s", "@shell@", "-l", $name, "-c", "XDG_RUNTIME_DIR=/run/user/$uid @systemd@/bin/systemctl --user daemon-reload");
system("su", "-s", "@shell@", "-l", $name, "-c", "XDG_RUNTIME_DIR=/run/user/$uid @systemd@/bin/systemctl --user start nixos-activation.service");
}
close $listActiveUsers;