Skip to content

Commit

Permalink
feat: update to the nh beta which introduce darwin support
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 27, 2024
1 parent 43d5306 commit a3d29a1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions home/comfy/system/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ in
SYSTEMD_PAGERSECURE = "true";
PAGER = "less -FR";
FLAKE = osConfig.garden.environment.flakePath;
NH_FLAKE = osConfig.garden.environment.flakePath;
};
};
}
1 change: 1 addition & 0 deletions home/isabel/system/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ in
SYSTEMD_PAGERSECURE = "true";
PAGER = "less -FR";
FLAKE = osConfig.garden.environment.flakePath;
NH_FLAKE = osConfig.garden.environment.flakePath;
};
};
}
10 changes: 9 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
default:
@just --list --unsorted

# setup our nixos and darwin builder
# setup our nixos builder
[private]
[linux]
[group('rebuild')]
builder goal *args:
nh os {{goal}} -- {{args}}

# setup our darwin builder
[private]
[macos]
[group('rebuild')]
builder goal *args:
nh darwin {{goal}} -- {{args}}

# we have this setup incase i ever want to go back and use the old stuff
[private]
[linux]
Expand Down
1 change: 1 addition & 0 deletions modules/base/environment/vars.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@

# Some programs like `nh` use the FLAKE env var to determine the flake path
FLAKE = config.garden.environment.flakePath;
NH_FLAKE = config.garden.environment.flakePath;
};
}

0 comments on commit a3d29a1

Please sign in to comment.