Need elevated privileges for normal inhibit, let's try what=idle instead
This commit is contained in:
parent
19579c43c7
commit
7aa0405738
2 changed files with 7 additions and 7 deletions
|
@ -13,8 +13,8 @@ writeShellApplication
|
|||
# An install script for NixOS installation to /tmp
|
||||
set -e
|
||||
pushd /tmp > /dev/null
|
||||
systemd-inhibit rm -rf ./install-nix
|
||||
systemd-inhibit git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git ./install-nix
|
||||
systemd-inhibit --what=idle rm -rf ./install-nix
|
||||
systemd-inhibit --what=idle git clone https://git.lillianviolet.dev/Lillian-Violet/NixOS-Config.git ./install-nix
|
||||
pushd ./install-nix/nixos/hosts > /dev/null
|
||||
echo "Please choose the hostname you are installing to from the following list:"
|
||||
i=1
|
||||
|
@ -26,10 +26,10 @@ writeShellApplication
|
|||
popd > /dev/null
|
||||
pushd ./install-nix > /dev/null
|
||||
echo "NixOS Installing..."
|
||||
systemd-inhibit sudo nixos-install --flake .#"''${dir}"
|
||||
systemd-inhibit --what=idle sudo nixos-install --flake .#"''${dir}"
|
||||
popd > /dev/null
|
||||
echo "Cleaning up repository in '/tmp/install-nix'..."
|
||||
systemd-inhibit rm -rf ./install-nix
|
||||
systemd-inhibit --what=idle rm -rf ./install-nix
|
||||
popd > /dev/null
|
||||
notify-send -e "NixOS Install Succeeded!" --icon=software-update-available
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue