From 42a5093c254a0e96276e6bbc7a068785f08ac5d9 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Fri, 1 Mar 2024 16:36:39 +0100 Subject: [PATCH] Or this instead actually --- pkgs/rebuild/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/rebuild/default.nix b/pkgs/rebuild/default.nix index b51433f..f4830e8 100644 --- a/pkgs/rebuild/default.nix +++ b/pkgs/rebuild/default.nix @@ -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" ''; }