User-domain agents are not rediscovered from the user LaunchAgents directory after reboot. Let built-in agents inherit the GUI default while keeping explicit user-domain configuration available.
15 lines
509 B
Nix
15 lines
509 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
services.glance.enable = true;
|
|
launchd.agents.glance.domain = "user";
|
|
|
|
nmt.script = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin ''
|
|
domainFile=LaunchAgentDomains/org.nix-community.home.glance.domain
|
|
assertFileExists "$domainFile"
|
|
assertFileContent "$domainFile" ${builtins.toFile "expected-domain" "user\n"}
|
|
assertFileContains activate 'domain="user/$(id -u)"'
|
|
assertFileContains activate 'launchctl kickstart -k "$domain/org.nix-community.home.glance"'
|
|
'';
|
|
}
|