clean
This commit is contained in:
parent
fc618fcee0
commit
2aad6d0145
|
@ -3,8 +3,10 @@
|
||||||
hostname=$(hostname)
|
hostname=$(hostname)
|
||||||
|
|
||||||
if [[ $hostname == *"pc"* ]]; then
|
if [[ $hostname == *"pc"* ]]; then
|
||||||
|
echo "This machine is identified as a Desktop PC."
|
||||||
sudo nixos-rebuild switch --flake ~/nix/#pc
|
sudo nixos-rebuild switch --flake ~/nix/#pc
|
||||||
elif [[ $hostname == *"laptop"* ]]; then
|
elif [[ $hostname == *"laptop"* ]]; then
|
||||||
|
echo "This machine is identified as a Laptop."
|
||||||
sudo nixos-rebuild switch --flake ~/nix/#laptop
|
sudo nixos-rebuild switch --flake ~/nix/#laptop
|
||||||
else
|
else
|
||||||
echo "Unable to determine the type of machine."
|
echo "Unable to determine the type of machine."
|
||||||
|
|
Loading…
Reference in a new issue