Or this instead actually

This commit is contained in:
Lillian Violet 2024-03-01 16:36:39 +01:00
parent b5ff78aae9
commit 42a5093c25

View file

@ -25,7 +25,7 @@ writeShellApplication
popd > /dev/null
echo "NixOS Rebuilt OK!"
}
sudo bash -c "$(declare -f rebuild_function); rebuild_function"
sudo systemd-inhibit --who="NixOS Updater" --why="Updating system configuration" sudo -u lillian rebuild_function
sudo systemd-inhibit --who="NixOS Updater" --why="Updating system configuration" sudo -u lillian bash -c "$(declare -f rebuild_function); rebuild_function"
'';
}