From ce01f8f8f1a1b97ae64a427ba34ca8c66c62642f Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 26 Nov 2023 18:20:37 +0900 Subject: [PATCH] test --- docs/install.sh | 7 +++---- docs/setup.sh | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/install.sh b/docs/install.sh index 96478e99..fc352a39 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -11,10 +11,9 @@ if [ "$(id -u)" -eq 0 ]; then fi if [ ! -d "/tmp/nixos/git/.git" ]; then - git clone --filter=blob:none --no-checkout https://git.sysctl.io/albert/nix "/tmp/nixos/git" - cd /tmp/nixos/git - git sparse-checkout set --cone docs/ home-manager/ keys/ssh/ lib/ nixos/ flake.lock flake.nix shell.nix - git checkout main + git clone https://git.sysctl.io/albert/nix "/tmp/nixos/git" +else + git -C "/tmp/nixos/git" pull fi pushd /tmp/nixos/git diff --git a/docs/setup.sh b/docs/setup.sh index 8ff87bb0..88200c66 100755 --- a/docs/setup.sh +++ b/docs/setup.sh @@ -9,7 +9,8 @@ source ~/.bashrc # Import and trust the GPG key echo ">>> Setting up user GPG key..... " -drive=$(lsblk -o serial,name | grep 012345679518 | awk {'print $2'}) +drive=$(lsblk -o serial,name | grep NGN130R000980P2202 | awk {'print $2'}) +# drive=$(lsblk -o serial,name | grep 012345679518 | awk {'print $2'}) sudo mkdir /tmp/drive sudo cryptsetup luksOpen /dev/${drive}3 usb-luks sudo mount /dev/mapper/usb-luks /tmp/drive