From 02dd37df8580fa6b5407eae2656900bf402edf3e Mon Sep 17 00:00:00 2001 From: dnkmmr <104856296+dnkmmr69420@users.noreply.github.com> Date: Tue, 29 Aug 2023 13:38:06 -0500 Subject: [PATCH] Update custom.just did some tweaking to the nix installation and uninstallation part --- .../shared/usr/share/ublue-os/just/custom.just | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/custom.just b/system_files/desktop/shared/usr/share/ublue-os/just/custom.just index f9bff300..203eb4b8 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/custom.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/custom.just @@ -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