nushell: config: fix switch command

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a696416730a7fd831e8dfde51397e6ea41577
This commit is contained in:
Bloxx12 2025-07-19 23:52:20 +02:00
commit 7ac4ac73c0
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -316,7 +316,7 @@ if not ($env_vars_file | path exists) {
}
def switch [] {
nh os switch --file ($env.NH_FLAKE | path join default.nix) (open /etc/hostname)
nh os switch --file ($env.NH_FLAKE | path join default.nix) (open /etc/hostname | str trim)
}
# fix sudo by prepending /run/wrappers/bin to the PATH.