oui
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
nix = {
|
||||
enable = false;
|
||||
settings = {
|
||||
substituters = [
|
||||
"https://cache.nixos.org/"
|
||||
"https://cache.iog.io"
|
||||
"https://haskell-language-server.cachix.org"
|
||||
"https://nix-community.cachix.org"
|
||||
];
|
||||
trusted-users = ["@admin"];
|
||||
trusted-public-keys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
||||
"haskell-language-server.cachix.org-1:juFfHrwkOxqIOZShtC4YC1uT1bBcq2RSvC7OMKx0Nz8="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
|
||||
experimental-features = ["ca-derivations" "nix-command" "flakes"];
|
||||
|
||||
keep-outputs = true;
|
||||
keep-derivations = true;
|
||||
|
||||
max-jobs = 32;
|
||||
cores = 0;
|
||||
http-connections = 64;
|
||||
download-buffer-size = 134217728; # 128 MB
|
||||
};
|
||||
# optimise.automatic = true;
|
||||
package = pkgs.nixVersions.latest;
|
||||
};
|
||||
|
||||
nix.extraOptions =
|
||||
''
|
||||
accept-flake-config = true
|
||||
''
|
||||
+ lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
||||
extra-platforms = x86_64-darwin aarch64-darwin
|
||||
'';
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.yabai = {
|
||||
enable = true;
|
||||
# enableScriptingAddition = true;
|
||||
package = pkgs.yabai;
|
||||
config = {
|
||||
# layout
|
||||
layout = "bsp";
|
||||
auto_balance = "off";
|
||||
split_ratio = "0.50";
|
||||
window_placement = "second_child";
|
||||
# Gaps
|
||||
window_gap = 18;
|
||||
top_padding = 18;
|
||||
bottom_padding = 52;
|
||||
left_padding = 18;
|
||||
right_padding = 18;
|
||||
# shadows and borders
|
||||
window_shadow = "float";
|
||||
# mouse
|
||||
mouse_follows_focus = "off";
|
||||
focus_follows_mouse = "off";
|
||||
mouse_modifier = "cmd";
|
||||
mouse_action1 = "move";
|
||||
mouse_action2 = "resize";
|
||||
mouse_drop_action = "swap";
|
||||
};
|
||||
|
||||
# # Unload the macOS WindowManager process
|
||||
# launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist > /dev/null 2>&1 &
|
||||
# # bar
|
||||
# yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
|
||||
# yabai -m signal --add event=display_added action="sleep 1 && ${scripts}/create_spaces.sh"
|
||||
# yabai -m signal --add event=display_removed action="sleep 1 && ${scripts}/create_spaces.sh"
|
||||
# yabai -m signal --add event=window_created action="sketchybar --trigger windows_on_spaces"
|
||||
# yabai -m signal --add event=window_destroyed action="sketchybar --trigger windows_on_spaces"
|
||||
# ${scripts}/create_spaces.sh
|
||||
extraConfig = ''
|
||||
# rules
|
||||
yabai -m rule --add app="^(Genshin Impact|LuLu|Vimac|Calculator|Software Update|Dictionary|VLC|System Preferences|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Steam|Alfred|Activity Monitor)$" manage=off
|
||||
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
|
||||
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
|
||||
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
|
||||
yabai -m rule --add label="Select file to save to" app="^Inkscape$" title="Select file to save to" manage=off
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user