Switch to a generic configuration + integration for Thor
This commit is contained in:
parent
0426a7e93a
commit
34aefb17a1
9 changed files with 269 additions and 8 deletions
21
upgrade.sh
Executable file
21
upgrade.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env sh
|
||||
HOST=`cat /etc/hostname`
|
||||
echo "Upgrading $HOST"
|
||||
case "$HOST" in
|
||||
odin)
|
||||
echo "Found odin"
|
||||
sudo nixos-rebuild boot -p Intel -I nixos-config=./nixos/odin-intel.nix &&
|
||||
sudo nixos-rebuild boot -p Nvidia -I nixos-config=./nixos/odin-nvidia.nix
|
||||
;;
|
||||
thor | freya)
|
||||
echo "Found $HOST"
|
||||
sudo nixos-rebuild boot -I "nixos-config=./nixos/$HOST.nix"
|
||||
;;
|
||||
*)
|
||||
echo "localhost match not found"
|
||||
exit 1
|
||||
;;
|
||||
esac &&
|
||||
home-manager switch
|
||||
|
||||
echo DONE
|
||||
Loading…
Add table
Add a link
Reference in a new issue