From 03661585e18aebaff8a5288b3807d692338f0c5a Mon Sep 17 00:00:00 2001 From: dnkmmr <104856296+dnkmmr69420@users.noreply.github.com> Date: Tue, 29 Aug 2023 13:42:23 -0500 Subject: [PATCH] Update custom.just Fixed some of the nix installation and uninstallation part --- .../deck/shared/usr/share/ublue-os/just/custom.just | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/system_files/deck/shared/usr/share/ublue-os/just/custom.just b/system_files/deck/shared/usr/share/ublue-os/just/custom.just index bd96c701..29d13646 100644 --- a/system_files/deck/shared/usr/share/ublue-os/just/custom.just +++ b/system_files/deck/shared/usr/share/ublue-os/just/custom.just @@ -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'