Update setup script
This commit is contained in:
parent
e3700d0a88
commit
b7ec18fa0d
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue