uhhh, have a look. better commit messages in future, proooomise xoxo

This commit is contained in:
Serenity-F 2024-03-29 08:41:04 +10:00
commit d5354e0828
22 changed files with 1440 additions and 0 deletions

21
install.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
sudo rsync -rla --delete --exclude=".*" . /etc/nixos
sudo ln -s /etc/nixos/hosts/$(hostname)/hardware-configuration.nix /etc/nixos/hardware-configuration.nix
sudo ln -s /etc/nixos/hosts/$(hostname)/flake.lock /etc/nixos/flake.lock
if [ "$(hostname)" = "wyvern" ]; then
sudo chown syncoid:syncoid /etc/nixos/secrets/turtle-backup.key
sudo chown nebula-bbs:nebula-bbs /etc/nixos/secrets/ca.crt
sudo chown nebula-bbs:nebula-bbs /etc/nixos/secrets/wyvern.bbs.lan.crt
sudo chown nebula-bbs:nebula-bbs /etc/nixos/secrets/wyvern.bbs.lan.key
fi
mkdir -p ~/.ssh
rsync -p --chmod=600 ./secrets/id_yubikey1_fido2 ~/.ssh/
rsync -p --chmod=600 ./secrets/id_yubikey2_fido2 ~/.ssh/
rsync -p --chmod=600 ./secrets/fallback ~/.ssh/
mkdir -p ~/.config/sops/age
rsync -p --chmod=600 ./secrets/sops-age-keys.txt ~/.config/sops/age/keys.txt
sudo cp ./media/pfp.png /var/lib/AccountsService/icons/sasha