Merge pull request #219 from dnkmmr69420/patch-1

Fixed some of the nix installation and uninstallation part in custom.just
This commit is contained in:
Kyle Gospodnetich 2023-08-29 12:21:32 -07:00 committed by GitHub
commit e4dba45c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,10 +45,20 @@ install-corectrl:
rpm-ostree kargs --append="amdgpu.ppfeaturemask=0xffffffff"
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 | sudo bash
sudo /nix/nix-installer uninstall
enable-big-picture:
#!/usr/bin/env bash