mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-10 11:23:40 +02:00
26 lines
742 B
Nix
26 lines
742 B
Nix
{
|
|
config,
|
|
myvars,
|
|
...
|
|
}: let
|
|
homeDir = config.users.users."${myvars.username}".home;
|
|
in {
|
|
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/ya/yabai/package.nix
|
|
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";
|
|
};
|
|
}
|