Skip to content

Commit

Permalink
refactor(nix): use determinate system installer instead of custom script
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Aug 27, 2023
1 parent 0a36820 commit 96ef1b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
set -euo pipefail
FILES_ROOT="/tmp/ublue-os/files"

git clone 'https://github.com/dnkmmr69420/nix-installer-scripts' /tmp/nix-installer-scripts
install -c -m 0755 /tmp/nix-installer-scripts/installer-scripts/silverblue-nix-installer.sh "$FILES_ROOT/usr/bin/ublue-nix-install"
install -c -m 0755 /tmp/nix-installer-scripts/uninstaller-scripts/silverblue-nix-uninstaller.sh "$FILES_ROOT/usr/bin/ublue-nix-uninstall"

wget -O /tmp/devpod "https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64"
install -c -m 0755 /tmp/devpod "$FILES_ROOT/usr/bin"

Expand Down
2 changes: 2 additions & 0 deletions files/usr/bin/ublue-nix-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
2 changes: 2 additions & 0 deletions files/usr/bin/ublue-nix-uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
/nix/nix-installer uninstall

0 comments on commit 96ef1b1

Please sign in to comment.