add: update scripts

This commit is contained in:
Elias Gasparis 2025-04-17 14:43:47 +08:00
parent 535e0c91b1
commit e11fccf329
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,4 @@
#!/run/current-system/sw/bin/bash
sudo nixos-rebuild switch -I nixos-config=/home/elias/nixos-config/configuration.nix --upgrade

View file

@ -1 +0,0 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGfnE4JwpIyghoFYurZLjFkzc5G4l1FeS76yYITg9wUB elias@tux" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH0Q/NC0RHEUjx2WHrZPw0xnCjOCFv5uz53099lknZmG elias@fedora" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3Ihu9CsCL17FuHl6EqyMDT5BPjh8GlLTWHM+Y1D1I7 elias@bluenix" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILv96m1nCz3D0lzjzeGa+n4m3krEyl7KZ0tstjIZdTkq elias@bluefin" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK8zlxSVOTCnAgb4U5vkC3ietH3Jd9gLE+FA6UOZp64J elias@arkadi.one" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMVWt9UsavFfdwQzklW/zSlwGwQXaDvFk+MdzsCp0gnp tootbrute@tutanota.com"

12
update.sh Executable file
View file

@ -0,0 +1,12 @@
#!/run/current-system/sw/bin/bash
# add things to git
COMMIT_MSG="Update NixOS config."
echo "Commit message?"
# what did I change?
read COMMIT_MSG
echo "OK!"
git add .
git commit -m "$COMMIT_MSG"
git push origin main