Update setup script

This commit is contained in:
iFargle 2023-09-28 20:23:04 +09:00
parent e3700d0a88
commit b7ec18fa0d
2 changed files with 8 additions and 8 deletions

View file

@ -20,7 +20,7 @@ nix develop -c /etc/nixos/git/docs/setup.sh
* Add the nix lsp - [Link](https://github.com/nix-community/rnix-lsp)
* [x] Fix Grafana
* [x] Build a better dashboard to monitor all my nixified devices
* [ ] Look into Remote Builds - [Link](https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html)
* [x] Look into Remote Builds - [Link](https://nixos.org/manual/nix/stable/advanced-topics/distributed-builds.html)
* [ ] Find a way to remove all default search engines in Firefox (Google, Amazon, etc)
* [ ] Figure out what the home-manager `account` options are for.
* [ ] Security hardening

View file

@ -41,22 +41,22 @@ echo "" >> ./keys/ssh/keys.txt
echo "# `whoami`@`hostname`" >> ./keys/ssh/keys.txt
cat /home/albert/.ssh/id_rsa.pub >> ./keys/ssh/keys.txt
# Fix gnupg permissions:
echo "Fixing ~/.gnupg permissions..... "
find ~/.gnupg -type f -exec chmod 600 {} \;
find ~/.gnupg -type d -exec chmod 700 {} \;
# Add all changes to git and and push
echo "Pushing to git..... "
git add keys/hosts/`hostname`.asc
git commit -am "Setup: `whoami`@`hostname`"
git push
# Fix gnupg permissions:
echo "Fixing ~/.gnupg permissions..... "
find ~/.gnupg -type f -exec chmod 600 {} \;
find ~/.gnupg -type d -exec chmod 700 {} \;
echo
echo
echo "Complete. Once '.sops.yaml' is updated, "
echo "you may run 'update-secrets'"
echo "and reboot."
echo "run 'update-secrets' and reboot."
echo
echo
echo "Reminder: Upload these changes to git"