move services to proper dir

master
Elias Almqvist 4 months ago
parent 172a6124be
commit cecc85bdf8
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 2
      nix-darwin/home.nix
  2. 35
      nix-darwin/modules/skhd.nix
  3. 35
      nix-darwin/modules/yabai.nix
  4. 34
      nix-darwin/services/skhd.nix
  5. 34
      nix-darwin/services/yabai.nix

@ -40,6 +40,8 @@
imports = [
# Services
./services/nix-daemon.nix # NOTE: DO NOT REMOVE
./services/yabai.nix
./services/skhd.nix
# Modules
./modules/yabai.nix

@ -1,35 +0,0 @@
{ config, pkgs, ... }:
{
# config
# service
home.file."Library/LaunchAgents/org.nixos.skhd.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>
<string>org.nixos.skhd</string>
<key>ProgramArguments</key>
<array>
<string>${pkgs.skhd}/bin/skhd</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>${pkgs.skhd}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>${config.home.homeDirectory}/.skhd.out.log</string>
<key>StandardErrorPath</key>
<string>${config.home.homeDirectory}/.skhd.err.log</string>
</dict>
</plist>
'';
};
}

@ -1,35 +0,0 @@
{ config, pkgs, ... }:
{
# config
# service
home.file."Library/LaunchAgents/org.nixos.yabai.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>
<string>org.nixos.yabai</string>
<key>ProgramArguments</key>
<array>
<string>${pkgs.yabai}/bin/yabai</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>${pkgs.yabai}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>${config.home.homeDirectory}/.yabai.out.log</string>
<key>StandardErrorPath</key>
<string>${config.home.homeDirectory}/.yabai.err.log</string>
</dict>
</plist>
'';
};
}

@ -0,0 +1,34 @@
{ config, pkgs, ... }:
{
# service
home.file."Library/LaunchAgents/org.nixos.skhd.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>
<string>org.nixos.skhd</string>
<key>ProgramArguments</key>
<array>
<string>${pkgs.skhd}/bin/skhd</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>${pkgs.skhd}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>${config.home.homeDirectory}/.skhd.out.log</string>
<key>StandardErrorPath</key>
<string>${config.home.homeDirectory}/.skhd.err.log</string>
</dict>
</plist>
'';
};
}

@ -0,0 +1,34 @@
{ config, pkgs, ... }:
{
# service
home.file."Library/LaunchAgents/org.nixos.yabai.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>
<string>org.nixos.yabai</string>
<key>ProgramArguments</key>
<array>
<string>${pkgs.yabai}/bin/yabai</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>${pkgs.yabai}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>${config.home.homeDirectory}/.yabai.out.log</string>
<key>StandardErrorPath</key>
<string>${config.home.homeDirectory}/.yabai.err.log</string>
</dict>
</plist>
'';
};
}
Loading…
Cancel
Save