Files
home-manager/tests/modules/services/glance/domain-override.nix
T
Austin Horstman 165228b0ef launchd: restore gui domain defaults
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.
2026-07-15 10:29:26 -05:00

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"'
'';
}