mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 21:32:48 +00:00
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:
commit
e4dba45c8c
@ -45,10 +45,20 @@ install-corectrl:
|
|||||||
rpm-ostree kargs --append="amdgpu.ppfeaturemask=0xffffffff"
|
rpm-ostree kargs --append="amdgpu.ppfeaturemask=0xffffffff"
|
||||||
|
|
||||||
install-nix:
|
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 | 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:
|
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:
|
enable-big-picture:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user