Configuration files for my GNU/Linux installation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/nix-darwin/services/yabai.nix

37 lines
843 B

{ config, pkgs, ... }:
6 months ago
let
fullScriptPath = ".scripts/yabai-daemon.sh";
in
{
6 months ago
home.file."Library/LaunchAgents/org.yabaios.autostart.plist" = {
text = ''
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
6 months ago
<string>org.yabaios.autostart</string>
<key>ProgramArguments</key>
<array>
6 months ago
<string>${pkgs.bash}/bin/bash</string>
<string>${fullScriptPath}</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
6 months ago
<false/>
</dict>
</plist>
'';
};
6 months ago
home.file."${fullScriptPath}" = {
text = ''
yabai --start-service
'';
executable = true;
};
}
6 months ago