about summary refs log tree commit diff
path: root/nixos/modules/system/activation
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-10-05 10:06:18 +0800
committerPeter Hoeg <peter@hoeg.com>2018-10-05 10:06:40 +0800
commit8118d6eb2e34b6f08511819b4e75650cf7f7d9cd (patch)
tree94002f234f19181a7c2ffecca9f076b52cb56f5e /nixos/modules/system/activation
parent1353ba26787d398f3595deea28e21a134978df83 (diff)
downloadnixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.tar
nixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.tar.gz
nixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.tar.bz2
nixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.tar.lz
nixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.tar.xz
nixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.tar.zst
nixlib-8118d6eb2e34b6f08511819b4e75650cf7f7d9cd.zip
switch-to-configuration.pl: activate the nixos-activation.service user service
Diffstat (limited to 'nixos/modules/system/activation')
-rw-r--r--nixos/modules/system/activation/switch-to-configuration.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/switch-to-configuration.pl b/nixos/modules/system/activation/switch-to-configuration.pl
index c3e469e4b8a1..a9824649e387 100644
--- a/nixos/modules/system/activation/switch-to-configuration.pl
+++ b/nixos/modules/system/activation/switch-to-configuration.pl
@@ -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;