Files
nix-config/modules/darwin/wm/skhd.nix
2024-01-23 19:19:21 +08:00

19 lines
405 B
Nix

{
config,
username,
...
}: {
services.skhd = {
enable = true;
skhdConfig = builtins.readFile ./skhdrc;
};
# custom log path for debugging
launchd.user.agents.skhd.serviceConfig = let
homeDir = config.users.users."${username}".home;
in {
StandardErrorPath = "${homeDir}/Library/Logs/skhd.stderr.log";
StandardOutPath = "${homeDir}/Library/Logs/skhd.stdout.log";
};
}