This commit is contained in:
iFargle 2023-11-26 18:20:37 +09:00
parent 2a5dbb1a8d
commit ce01f8f8f1
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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