post-install script update

This commit is contained in:
iFargle 2023-09-23 21:31:46 +09:00
parent 32c51b98f0
commit feb59ce1cb
2 changed files with 34 additions and 29 deletions

View file

@ -6,12 +6,17 @@ home-manager switch -b backup --flake .
source ~/.bashrc source ~/.bashrc
# Import and trust the GPG key # Import and trust the GPG key
read -p "Path to GPG Private Key: " gpgKey echo "Setting up user GPG key..... "
gpg --import $gpgKey drive=(lsblk -o serial,name | grep -A 012345679518 | awk {'print $2'})
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key 64F6C4EB46C4543A trust sudo mkdir /tmp/drive
sudo cryptsetup luksOpen /dev/${drive}3 usb-luks
sudo mount /dev/mapper/usb-luks /tmp/drive
gpg --import /tmp/drive/gpg/albert@sysctl.io/privkey.asc
sudo rmdir /tmp/drive
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key albert@sysctl.io trust
# Setup SOPS # Setup SOPS
echo "Copy this key to .sops.yaml: " echo "!!!!! Copy this key to .sops.yaml: "
sudo ssh-to-pgp \ sudo ssh-to-pgp \
-comment "Generated `ddate`" \ -comment "Generated `ddate`" \
-email "root@`hostname`" \ -email "root@`hostname`" \

View file

@ -26,31 +26,31 @@
# List packages installed in system profile # List packages installed in system profile
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
sbctl sbctl # Secureboot Control
wget wget # WebGet
killall killall # Killall
curl curl # Curl - For web requests
glxinfo neofetch # system information viewer
neofetch rsync # copy/sync
rsync git # git!
git duf # replacement / prettier UI for df
duf ncdu # ncurses style browser for du/dust
ncdu du-dust # better UI for 'du"
du-dust home-manager # manage dotfiles
home-manager btop # like htop, but prettier
btop iftop # interface top - network usage
iftop nload # network load - Network usage graphs
nload iotop # I/O top viewer - disk r/w, etc
iotop sops # manage secrets
sops gnupg # GNU Privacy Guard
gnupg jq # Pretty print JSON
jq eza # like ls, but prettier
eza cryptsetup # used to open LUKS devices
cryptsetup parted # Disk partitioner / Formatter
parted screen # Terminal screen manager
screen alejandra # Nix code formatter
alejandra nixfmt # Nix code formatter
nixfmt e2fsprogs # disk format utilities, like mkfs.ext4
]; ];
# Select internationalisation properties. # Select internationalisation properties.