the_prg_server_configuratio.../nix-system-configs/forgejo/push.zsh

8 lines
284 B
Bash

sudo nixos-rebuild switch --upgrade-all
git pull
sudo cp /etc/nixos/configuration.nix forgejo-localconfig.nix
git add forgejo-localconfig.nix
## Be sure to add timestamp to the commit message to ensure when it was hecked up
git commit . -m "Update local Nix Config $(date)"
git push