mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-21 17:09:46 +01:00
refactor: Use hyphen(`-`) for variable names & folder names(except Python), replace all unserscore(`_`) with hyphen(`-`).
19 lines
410 B
Nix
19 lines
410 B
Nix
{
|
|
config,
|
|
myvars,
|
|
...
|
|
}: {
|
|
services.skhd = {
|
|
enable = true;
|
|
skhdConfig = builtins.readFile ./skhdrc;
|
|
};
|
|
|
|
# custom log path for debugging
|
|
launchd.user.agents.skhd.serviceConfig = let
|
|
homeDir = config.users.users."${myvars.username}".home;
|
|
in {
|
|
StandardErrorPath = "${homeDir}/Library/Logs/skhd.stderr.log";
|
|
StandardOutPath = "${homeDir}/Library/Logs/skhd.stdout.log";
|
|
};
|
|
}
|