mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
refactor: integrate nix-darwin config
This commit is contained in:
parent
79ce8d824b
commit
b1f250812d
13 changed files with 509 additions and 38 deletions
|
@ -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; [ ];
|
||||
|
|
14
modules/darwin/homebrew.nix
Normal file
14
modules/darwin/homebrew.nix
Normal 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
23
modules/darwin/yabai.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue