Commit dbab7d889b08

Vincent Demeester <vincent@sbr.pm>
2020-05-03 13:37:01
nixos-auto-update: do the git pull as vincent
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 0cd7ecb
Changed files (1)
modules/profiles/nix-auto-update.nixos.nix
@@ -52,8 +52,8 @@ in
             script = ''
               export PATH=/run/current-system/sw/bin
               cd /etc/nixos/
-              git pull --autostash --rebase
-              /run/current-system/sw/bin/make update switch
+              runuser -l vincent -c 'git pull --autostash --rebase'
+              make update switch
             '';
             startAt = cfg.dates;
             onFailure = [ "status-email-root@%n.service" ];