feat: window manager for darwin - yabai

This commit is contained in:
Ryan Yin
2024-01-23 14:23:19 +08:00
parent 55139cd4fe
commit f0e0b18c5f
7 changed files with 198 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
{
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";
};
}