Add scripts for pulling and pushing NixOS configuration updates
This commit is contained in:
parent
eefdbbd932
commit
077ab4ca3c
2 changed files with 5 additions and 2 deletions
3
nix-system-configs/forgejo/pull.zsh
Normal file
3
nix-system-configs/forgejo/pull.zsh
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
git pull
|
||||||
|
sudo cp forgejo-localconfig.nix /etc/nixos/configuration.nix
|
||||||
|
sudo nixos-rebuild switch --upgrade-all
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
sudo nixos-rebuild switch --upgrade-all
|
sudo nixos-rebuild switch --upgrade-all
|
||||||
git pull
|
git pull
|
||||||
sudo cp /etc/nixos/configuration.nix forgejo-localconfig.nix
|
sudo cp /etc/nixos/configuration.nix forgejo-localconfig.nix
|
||||||
git add forgejo-localconfig.nix
|
git add forgejo-localconfig.nix
|
||||||
git commit . -m "Update Configration from machine"
|
## 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
|
git push
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue