We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
switch
1 parent 537aead commit 379396cCopy full SHA for 379396c
1 file changed
justfile
@@ -4,14 +4,13 @@ default: switch
4
# Substitute work laptop hostname if necessary
5
hostname := `[ "$(hostname | cut -d "." -f 1)" = "RL-17745394" ] && echo "Petrichor" || hostname | cut -d "." -f 1`
6
7
-# TODO: `nh` can't specify the flake attribute?
8
[macos]
9
switch host=hostname:
10
- sudo darwin-rebuild switch --flake .#{{host}}
+ nh darwin switch .#darwinConfigurations.{{host}}
11
12
[linux]
13
14
- nh os switch .#{{host}}
+ nh os switch .#nixosConfigurations.{{host}}
15
16
update:
17
nix flake update --commit-lock-file
0 commit comments