Skip to content

Commit

Permalink
darwin(services): replace skhd, yabai and jankyborders with nix pkg
Browse files Browse the repository at this point in the history
Signed-off-by: Flokkq <[email protected]>
  • Loading branch information
Flokkq committed Jan 12, 2025
1 parent 408c655 commit 6511d83
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 18 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion home/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
imports = [
./dev
./apps
./wm
./jankyborders
./sketchybar
./svim
Expand Down
4 changes: 0 additions & 4 deletions home/darwin/wm/default.nix

This file was deleted.

4 changes: 0 additions & 4 deletions modules/darwin/brew.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ _: {
"nowplaying-cli"
"wireguard-tools"

"koekeishiya/formulae/yabai"
"koekeishiya/formulae/skhd"

"FelixKratz/formulae/borders"
"FelixKratz/formulae/svim"
];

Expand Down
4 changes: 1 addition & 3 deletions nixos/darwin/system/activation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
# activateSettings -u will reload the settings from the database and apply them to the current session,
# so we do not need to logout and login again to make the changes take effect.
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
/opt/homebrew/bin/yabai --restart-service
/opt/homebrew/bin/skhd --restart-service
/usr/local/bin/desktoppr "${meta.wallpaper}"
/usr/local/bin/desktoppr all "${meta.wallpaper}"
'';

system.activationScripts.applications.text = let
Expand Down
18 changes: 18 additions & 0 deletions nixos/darwin/system/services.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,22 @@
enable = true;
package = pkgs.sketchybar;
};

services.jankyborders = {
enable = true;
package = pkgs.jankyborders;
};

services.yabai = {
enable = true;
enableScriptingAddition = true;
package = pkgs.yabai;
config.extraConfig = builtins.readFile ../../../home/darwin/wm/yabairc;
};

services.skhd = {
enable = true;
package = pkgs.skhd;
skhdConfig = builtins.readFile ../../../home/darwin/wm/yabairc;
};
}

0 comments on commit 6511d83

Please sign in to comment.