mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-22 01:19:45 +01:00
19 lines
405 B
Nix
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";
|
|
};
|
|
}
|