diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2018-10-03 12:31:08 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-10-03 12:31:08 +0200 |
commit | 7297cc550165a7cd10f6a9946c70c3a7198fcc78 (patch) | |
tree | 4608d4a398cc228ef63cd304b9422352da7672f9 /nixos/modules/system/activation/top-level.nix | |
parent | a18b4a58d161272bb4bfb65a589554d1a048c1cf (diff) |
nixos/activation: fix systemd-user daemon-reload in auto-upgrade service (#47695)
The autoupgrade service defined in `system.autoUpgrade` (`nixos/modules/installer/tools/auto-upgrade.nix`) doesn't have `su` in its path and thus yields a warning during the `daemon-reload`. Specifying the absolute path fixes the issue. Fixes #47648
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 413543df88c63..a560af5ce96da 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -109,6 +109,7 @@ let inherit (pkgs) utillinux coreutils; systemd = config.systemd.package; shell = "${pkgs.bash}/bin/sh"; + su = "${pkgs.shadow.su}/bin/su"; inherit children; kernelParams = config.boot.kernelParams; |