mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-16 01:22:40 +02:00
feat: window manager for darwin - yabai
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
username,
|
||||
...
|
||||
}: let
|
||||
homeDir = config.users.users."${username}".home;
|
||||
in {
|
||||
services.yabai = {
|
||||
enable = true;
|
||||
|
||||
# Whether to enable yabai's scripting-addition.
|
||||
# SIP must be disabled for this to work.
|
||||
# https://github.com/koekeishiya/yabai/wiki/Disabling-System-Integrity-Protection
|
||||
enableScriptingAddition = true;
|
||||
# config = {};
|
||||
extraConfig = builtins.readFile ./yabairc;
|
||||
};
|
||||
|
||||
# custom log path for debugging
|
||||
launchd.user.agents.yabai.serviceConfig = {
|
||||
StandardErrorPath = "${homeDir}/Library/Logs/yabai.stderr.log";
|
||||
StandardOutPath = "${homeDir}/Library/Logs/yabai.stdout.log";
|
||||
};
|
||||
|
||||
launchd.daemons.yabai-sa = {
|
||||
# https://github.com/koekeishiya/yabai/issues/1287
|
||||
script = lib.mkForce ''
|
||||
echo "skip it"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user