diff --git a/nix-darwin/home.nix b/nix-darwin/home.nix index 3357780..8832650 100644 --- a/nix-darwin/home.nix +++ b/nix-darwin/home.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 diff --git a/nix-darwin/modules/skhd.nix b/nix-darwin/modules/skhd.nix index e005a90..e69de29 100644 --- a/nix-darwin/modules/skhd.nix +++ b/nix-darwin/modules/skhd.nix @@ -1,35 +0,0 @@ -{ config, pkgs, ... }: - -{ - # config - # service - home.file."Library/LaunchAgents/org.nixos.skhd.plist" = { - text = '' - - - - - Label - org.nixos.skhd - ProgramArguments - - ${pkgs.skhd}/bin/skhd - - EnvironmentVariables - - PATH - ${pkgs.skhd}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin - - RunAtLoad - - KeepAlive - - StandardOutPath - ${config.home.homeDirectory}/.skhd.out.log - StandardErrorPath - ${config.home.homeDirectory}/.skhd.err.log - - - ''; - }; -} diff --git a/nix-darwin/modules/yabai.nix b/nix-darwin/modules/yabai.nix index f9b5c81..e69de29 100644 --- a/nix-darwin/modules/yabai.nix +++ b/nix-darwin/modules/yabai.nix @@ -1,35 +0,0 @@ -{ config, pkgs, ... }: - -{ - # config - # service - home.file."Library/LaunchAgents/org.nixos.yabai.plist" = { - text = '' - - - - - Label - org.nixos.yabai - ProgramArguments - - ${pkgs.yabai}/bin/yabai - - EnvironmentVariables - - PATH - ${pkgs.yabai}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin - - RunAtLoad - - KeepAlive - - StandardOutPath - ${config.home.homeDirectory}/.yabai.out.log - StandardErrorPath - ${config.home.homeDirectory}/.yabai.err.log - - - ''; - }; -} diff --git a/nix-darwin/services/skhd.nix b/nix-darwin/services/skhd.nix new file mode 100644 index 0000000..3f37fe3 --- /dev/null +++ b/nix-darwin/services/skhd.nix @@ -0,0 +1,34 @@ +{ config, pkgs, ... }: + +{ + # service + home.file."Library/LaunchAgents/org.nixos.skhd.plist" = { + text = '' + + + + + Label + org.nixos.skhd + ProgramArguments + + ${pkgs.skhd}/bin/skhd + + EnvironmentVariables + + PATH + ${pkgs.skhd}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin + + RunAtLoad + + KeepAlive + + StandardOutPath + ${config.home.homeDirectory}/.skhd.out.log + StandardErrorPath + ${config.home.homeDirectory}/.skhd.err.log + + + ''; + }; +} diff --git a/nix-darwin/services/yabai.nix b/nix-darwin/services/yabai.nix new file mode 100644 index 0000000..c3722b9 --- /dev/null +++ b/nix-darwin/services/yabai.nix @@ -0,0 +1,34 @@ +{ config, pkgs, ... }: + +{ + # service + home.file."Library/LaunchAgents/org.nixos.yabai.plist" = { + text = '' + + + + + Label + org.nixos.yabai + ProgramArguments + + ${pkgs.yabai}/bin/yabai + + EnvironmentVariables + + PATH + ${pkgs.yabai}/bin:${pkgs.bash}/bin:/usr/bin:/bin:/usr/sbin:/sbin + + RunAtLoad + + KeepAlive + + StandardOutPath + ${config.home.homeDirectory}/.yabai.out.log + StandardErrorPath + ${config.home.homeDirectory}/.yabai.err.log + + + ''; + }; +}