mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-28 19:20:16 +00:00
fix: Pass --no-confirm to nix install script
This commit is contained in:
parent
08e1574ca8
commit
dcf968da05
@ -55,16 +55,12 @@ get-steamcmd:
|
||||
|
||||
install-nix:
|
||||
#!/usr/bin/env bash
|
||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sudo bash -s -- install --no-confirm
|
||||
nix_systemd_file_location='/nix/var/nix/profiles/default'
|
||||
if (( $EUID != 0 )); then
|
||||
echo "This script must be ran as root"
|
||||
exit 1
|
||||
fi
|
||||
rm -f /etc/systemd/system/nix-daemon.service
|
||||
rm -f /etc/systemd/system/nix-daemon.socket
|
||||
cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service
|
||||
cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket
|
||||
sudo rm -f /etc/systemd/system/nix-daemon.service
|
||||
sudo rm -f /etc/systemd/system/nix-daemon.socket
|
||||
sudo cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service
|
||||
sudo cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket
|
||||
|
||||
remove-nix:
|
||||
sudo /nix/nix-installer uninstall
|
||||
|
@ -46,17 +46,13 @@ install-corectrl:
|
||||
|
||||
install-nix:
|
||||
#!/usr/bin/env bash
|
||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
|
||||
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sudo bash -s -- install --no-confirm
|
||||
nix_systemd_file_location='/nix/var/nix/profiles/default'
|
||||
if (( $EUID != 0 )); then
|
||||
echo "This script must be ran as root"
|
||||
exit 1
|
||||
fi
|
||||
rm -f /etc/systemd/system/nix-daemon.service
|
||||
rm -f /etc/systemd/system/nix-daemon.socket
|
||||
cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service
|
||||
cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket
|
||||
|
||||
sudo rm -f /etc/systemd/system/nix-daemon.service
|
||||
sudo rm -f /etc/systemd/system/nix-daemon.socket
|
||||
sudo cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service
|
||||
sudo cp $nix_systemd_file_location/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket
|
||||
|
||||
remove-nix:
|
||||
sudo /nix/nix-installer uninstall
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user