Update custom.just

Fixed some of the nix installation and uninstallation part
This commit is contained in:
dnkmmr 2023-08-29 13:42:23 -05:00 committed by GitHub
parent 7dd9580f70
commit 03661585e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,10 +54,20 @@ get-steamcmd:
rm /tmp/steamcmd.tar.gz
install-nix:
#!/usr/bin/env bash
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
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
remove-nix:
curl -s https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/uninstaller-scripts/silverblue-nix-uninstaller.sh | bash
sudo /nix/nix-installer uninstall
get-greenlight:
echo 'Retrieving Greenlight'