Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(flake): switch back to upstream nix-darwin #125

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Conversation

steveej
Copy link
Member

@steveej steveej commented Jun 17, 2024

fix #91

  • deploy macos-06
  • manually test on macos-06
  • deploy all other macos machines

test log

verifying the functionality of macos-06 as a builder

[root@linux-builder-01:~/src/holochain-infra]# nix build -j0 --builders "ssh-ng://builder@208.52.154.135 x86_64-darwin - 6 2 nix-command,flakes,ca-derivations,impure-derivations,recursive-nix - -" .#darwinConfigurations.macos-06.config.system.build.toplevel
</details>
[root@linux-builder-01:~/src/holochain-infra]# ll result
lrwxrwxrwx 1 root root 96 Jun 17 13:48 result -> /nix/store/v24fagczxcjwd29xrhravs8b1blzpdy5-darwin-system-23.11.20240317.614b461+darwin4.58b905e

verifying the GC schedule

administrator@22627:~/ > sudo launchctl print system/org.nixos.nix-gc
system/org.nixos.nix-gc = {
	active count = 0
	path = /Library/LaunchDaemons/org.nixos.nix-gc.plist
	type = LaunchDaemon
	state = not running

	program = /bin/sh
	arguments = {
		/bin/sh
		-c
		exec /nix/store/2gsd4rlwcsm2zjy5cpmgbnv4f228j9xf-nix-gc
	}

	default environment = {
		PATH => /usr/bin:/bin:/usr/sbin:/sbin
	}

	environment = {
		NIX_REMOTE => daemon
		XPC_SERVICE_NAME => org.nixos.nix-gc
	}

	domain = system
	minimum runtime = 10
	exit timeout = 5
	runs = 2
	last exit code = 0

	event triggers = {
		org.nixos.nix-gc.268435468 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 35
			}
		}
		org.nixos.nix-gc.268435467 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 28
			}
		}
		org.nixos.nix-gc.268435466 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 21
			}
		}
		org.nixos.nix-gc.268435471 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 56
			}
		}
		org.nixos.nix-gc.268435465 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 14
			}
		}
		org.nixos.nix-gc.268435470 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 49
			}
		}
		org.nixos.nix-gc.268435464 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 7
			}
		}
		org.nixos.nix-gc.268435463 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 0
			}
		}
		org.nixos.nix-gc.268435469 => {
			keepalive = 0
			service = org.nixos.nix-gc
			stream = com.apple.launchd.calendarinterval
			monitor = com.apple.UserEventAgent-System
			descriptor = {
				"Minute" => 42
			}
		}
	}

	event channels = {
		"com.apple.launchd.calendarinterval" = {
			port = 0x37c9b
			active = 0
			managed = 1
			reset = 0
			hide = 0
			watching = 1
		}
	}

	spawn type = daemon (3)
	jetsam priority = 40
	jetsam memory limit (active) = (unlimited)
	jetsam memory limit (inactive) = (unlimited)
	jetsamproperties category = daemon
	jetsam thread limit = 32
	cpumon = default
	probabilistic guard malloc policy = {
		activation rate = 1/1000
		sample rate = 1/0
	}

	properties = inferred program | managed LWCR | has LWCR
}

@steveej steveej merged commit 6371568 into develop Jun 17, 2024
3 checks passed
@steveej steveej deleted the unfork-nix-darwin branch June 17, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake(inputs/nix-darwin): use upstream instead of fork
1 participant