test
This commit is contained in:
parent
2a5dbb1a8d
commit
ce01f8f8f1
2 changed files with 5 additions and 5 deletions
|
@ -11,10 +11,9 @@ if [ "$(id -u)" -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "/tmp/nixos/git/.git" ]; then
|
if [ ! -d "/tmp/nixos/git/.git" ]; then
|
||||||
git clone --filter=blob:none --no-checkout https://git.sysctl.io/albert/nix "/tmp/nixos/git"
|
git clone https://git.sysctl.io/albert/nix "/tmp/nixos/git"
|
||||||
cd /tmp/nixos/git
|
else
|
||||||
git sparse-checkout set --cone docs/ home-manager/ keys/ssh/ lib/ nixos/ flake.lock flake.nix shell.nix
|
git -C "/tmp/nixos/git" pull
|
||||||
git checkout main
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd /tmp/nixos/git
|
pushd /tmp/nixos/git
|
||||||
|
|
|
@ -9,7 +9,8 @@ source ~/.bashrc
|
||||||
|
|
||||||
# Import and trust the GPG key
|
# Import and trust the GPG key
|
||||||
echo ">>> Setting up user 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 mkdir /tmp/drive
|
||||||
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
|
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
|
||||||
sudo mount /dev/mapper/usb-luks /tmp/drive
|
sudo mount /dev/mapper/usb-luks /tmp/drive
|
||||||
|
|
Loading…
Reference in a new issue