update things...
This commit is contained in:
parent
ae2ea826ea
commit
380a0a7e0e
7 changed files with 338 additions and 65 deletions
|
|
@ -1,11 +1,15 @@
|
|||
{writeShellScriptBin, ...}:
|
||||
{
|
||||
writeShellScriptBin,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
writeShellScriptBin "rebuild" ''
|
||||
set -e
|
||||
pushd ~/nixos/
|
||||
alejandra . &>/dev/null
|
||||
${pkgs.alejandra}/bin/alejandra . &>/dev/null
|
||||
git add .
|
||||
git pull origin main
|
||||
echo "[REBUILD]: rebuilding nixos"
|
||||
nh os switch
|
||||
${pkgs.nh}/bin/nh os switch
|
||||
popd
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue