Add scripts for updating system
This commit is contained in:
6
scripts/home-update.sh
Executable file
6
scripts/home-update.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
pushd ~/.dotfiles
|
||||
hn=$(hostname)
|
||||
home-manager switch --flake .#daniel-$hn
|
||||
popd
|
||||
5
scripts/system-update.sh
Executable file
5
scripts/system-update.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
pushd ~/.dotfiles
|
||||
sudo nixos-rebuild switch --flake .#
|
||||
popd
|
||||
5
scripts/update.sh
Executable file
5
scripts/update.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
pushd ~/.dotfiles
|
||||
nix flake update
|
||||
popd
|
||||
Reference in New Issue
Block a user