refactor: integrate nix-darwin config

This commit is contained in:
Youwen Wu 2024-08-05 02:51:43 -07:00
parent 79ce8d824b
commit b1f250812d
13 changed files with 509 additions and 38 deletions

View file

@ -1,4 +1,7 @@
{ config, pkgs, ... }: {
{ config, pkgs, self, ... }: {
# Expose the package set, including overlays, for convenience.
darwinPackages = self.darwinConfigurations."Youwens-MacBook-Pro".pkgs;
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [ ];

View file

@ -0,0 +1,14 @@
{ inputs, ... }: {
nix-homebrew = {
enable = true;
enableRosetta = true;
user = "youwen";
taps = {
"homebrew/homebrew-core" = inputs.homebrew-core;
"homebrew/homebrew-cask" = inputs.homebrew-cask;
};
mutableTaps = false;
};
}

23
modules/darwin/yabai.nix Normal file
View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }: {
services.yabai = {
enable = true;
enableScriptingAddition = true;
config = {
focus_follows_mouse = "autoraise";
mouse_follows_focus = "off";
window_placement = "second_child";
window_opacity = "off";
top_padding = 36;
bottom_padding = 10;
left_padding = 10;
right_padding = 10;
window_gap = 10;
};
};
services.skhd = { enable = true; };
services.jankyborders = {
enable = true;
hidpi = true;
};
}