Skip to content

Commit 8a8a36a

Browse files
committed
Fix a bug for go-task in non NixOS use
This has been introduced in 7458f74
1 parent e21a28c commit 8a8a36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tasks:
1919
- 'overlays/**/*'
2020
- 'config/keyboards/kanata.kbd'
2121
cmds:
22-
- sudo nixos-rebuild switch --flake ".#$(hostname)" --show-trace
22+
- if [ -f '/etc/NIXOS' ]; then sudo nixos-rebuild switch --flake ".#$(hostname)" --show-trace; fi
2323

2424
home-manager:
2525
aliases:

0 commit comments

Comments
 (0)