Skip to content

Commit

Permalink
DEBUG: remove max-sub-jobs, try to set the plist and restart daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
colemickens committed Aug 29, 2024
1 parent 39fc7fa commit b203580
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ jobs:
- name: Install Nix on ${{ matrix.systems.system }}
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: "max-substitution-jobs = 8"
extra-args: "--determinate"
flakehub: true
# extra-conf: "max-substitution-jobs = 8"
- name: fixup dnixd launchd conf
run: |
nix profile install nixpkgs#gnused
sudo launchctl limit maxfiles 9000000 9999999
sudo $(which sed) -i 's/1048576/9999999/g' /Library/LaunchDaemons/systems.determinate.nix-daemon.plist
sudo $(which sed) -i 's/2097152/9999999/g' /Library/LaunchDaemons/systems.determinate.nix-daemon.plist
sudo launchctl kickstart -k system/systems.determinate.nix-daemon
- name: Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main

Expand Down
2 changes: 1 addition & 1 deletion magic-nix-cache/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use gha_cache::Credentials;
const DETERMINATE_STATE_DIR: &str = "/nix/var/determinate";
const DETERMINATE_NIXD_SOCKET_NAME: &str = "determinate-nixd.socket";

// cache bust
// cache bust2

// TODO(colemickens): refactor, move with other UDS stuff (or all PBH stuff) to new file
#[derive(Clone, Debug, Serialize, Deserialize)]
Expand Down

0 comments on commit b203580

Please sign in to comment.