From a9e5f8631a4fda5d650e47c9df03e6509d6c651b Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Tue, 2 Jan 2024 23:31:34 +0100 Subject: [PATCH] chore(just): remove empty lines that were used for readability while writing the just recipes --- build/ublue-os-just/70-nix.just | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/build/ublue-os-just/70-nix.just b/build/ublue-os-just/70-nix.just index 0f67188d..fb8f6e3d 100644 --- a/build/ublue-os-just/70-nix.just +++ b/build/ublue-os-just/70-nix.just @@ -18,32 +18,26 @@ setup-nix: "Add nix path to sudo" \ "Remove nix path from sudo" \ ) - if [ "$OPTION" == "Install" ]; then curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sudo bash -s -- install --no-confirm sudo rm -f /etc/systemd/system/nix-daemon.service sudo rm -f /etc/systemd/system/nix-daemon.socket sudo cp /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service sudo cp /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket - elif [ "$OPTION" == "Uninstall" ]; then sudo /nix/nix-installer uninstall sudo rm -f /etc/systemd/system/nix-daemon.service sudo rm -f /etc/systemd/system/nix-daemon.socket - elif [ "$OPTION" == "Update nix user profile" ]; then nix profile upgrade '.*' - elif [ "$OPTION" == "Update all nix profiles" ]; then nix profile upgrade '.*' sudo nix profile upgrade '.*' - elif [ "$OPTION" == "Re-copy nix systemd units to system" ]; then sudo rm -f /etc/systemd/system/nix-daemon.service sudo rm -f /etc/systemd/system/nix-daemon.socket sudo cp /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.service /etc/systemd/system/nix-daemon.service sudo cp /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.socket /etc/systemd/system/nix-daemon.socket - elif [ "$OPTION" == "Add nix path to sudo" ]; then sudo echo "Adding sudo path variables for nix" sudo rm -f /etc/sudoers.d/nix-sudo-env @@ -52,13 +46,8 @@ setup-nix: Defaults secure_path = /nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:$SUDOPATHVARIABLE5 EOF sudo echo "Finished adding sudo variables for nix" - elif [ "$OPTION" == "Remove nix path from sudo" ]; then sudo rm -f /etc/sudoers.d/nix-sudo-env - - else - echo 'Exiting...' - exit 0 fi # Install, uninstall or configure Fleek (https://getfleek.dev/) @@ -70,19 +59,16 @@ setup-fleek: fi echo 'What would you like to do with Fleek?' OPTION=$(ugum choose "Install Fleek" "Uninstall Fleek" "Integrate Nix/Fleek applications with system theme") - if [ "$OPTION" == "Install Fleek" ]; then mkdir -p $HOME/.config/nix echo "experimental-features = nix-command flakes" >> $HOME/.config/nix/nix.conf curl -fsSL https://getfleek.dev/installer | env FORCE=1 bash - elif [ "$OPTION" == "Uninstall Fleek" ]; then if [[ -x "/var/usrlocal/bin/fleek" ]]; then sudo rm -f /var/usrlocal/bin/fleek else echo "Fleek is not installed or has been already removed" fi - elif [ "$OPTION" == "Integrate Nix/Fleek applications with system theme" ]; then if [[ -x "/var/usrlocal/bin/fleek" ]]; then if command -v mutter; then @@ -111,10 +97,8 @@ setup-devbox: echo "Devbox is currently: ${CURRENT_STATE}" echo 'What would you like to do with devbox?' OPTION=$(ugum choose Install Uninstall) - if [ "$OPTION" == "Install" ]; then curl -fsSL https://get.jetpack.io/devbox | bash - elif [ "$OPTION" == "Uninstall" ]; then if [[ -x "/var/usrlocal/bin/devbox" ]]; then sudo rm -f /var/usrlocal/bin/devbox