grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderhamano againa4b6f88

main
2.4 KiB121 linesraw
1{
2  config,
3  lib,
4  pkgs,
5  ...
6}:
7
8let
9  paneru = builtins.getFlake "github:karinushka/paneru/5a033bc3a59f752ae72944f06945ab13cc570e04";
10  host = import ./hosts.nix;
11in
12{
13  imports = [ paneru.darwinModules.paneru ];
14
15  networking.hostName = host.name;
16
17  environment.systemPackages = [
18    pkgs.raycast
19    pkgs.thaw
20  ];
21
22  system = {
23    primaryUser = host.user;
24    stateVersion = 7;
25  };
26
27  users.users.${config.system.primaryUser} = {
28    name = config.system.primaryUser;
29    home = host.home;
30    shell = pkgs.fish;
31  };
32
33  programs.fish.enable = true;
34
35  services.paneru = {
36    enable = true;
37
38    settings = {
39      options = {
40        disable_native_tabs = true;
41        focus_follows_mouse = false;
42        mouse_follows_focus = false;
43
44        animation_speed = 12.0;
45
46        preset_column_widths = [
47          0.45
48          0.65
49          0.9
50        ];
51        window_resize_cycle = true;
52        create_virtual_workspace_automatically = true;
53        virtual_workspace_animations = true;
54
55      };
56
57      swipe = {
58        sensitivity = 0.35;
59        deceleration = 4.0;
60        continuous = true;
61
62        gesture = {
63          fingers_count = 3;
64          direction = "Natural";
65          vertical = false;
66        };
67      };
68
69      padding = {
70        top = 5;
71        bottom = 5;
72        left = 5;
73        right = 5;
74      };
75
76      windows.all = {
77        title = ".*";
78        horizontal_padding = 5;
79        vertical_padding = 5;
80      };
81
82      windows.todoist_quick_add = {
83        bundle_id = "com.todoist.mac.Todoist";
84        title = "^Todoist$";
85        floating = true;
86      };
87
88      bindings = {
89        window_focus_west = "cmd + shift - h";
90        window_focus_east = "cmd + shift - l";
91
92        window_swap_west = "cmd + shift + ctrl - h";
93        window_swap_east = "cmd + shift + ctrl - l";
94
95        # window_virtual_south = "cmd - j";
96        # window_virtual_north = "cmd - k";
97
98        window_center = "alt - c";
99        window_resize = "cmd + shift - f";
100        window_balance = "alt - b";
101
102        quit = "ctrl + alt - q";
103      };
104    };
105  };
106  system.defaults.CustomUserPreferences = {
107    "com.apple.symbolichotkeys" = {
108      AppleSymbolicHotKeys = {
109        "64" = {
110          enabled = false;
111        };
112      };
113    };
114
115    "com.raycast.macos" = {
116      raycastGlobalHotkey = "Command-49";
117    };
118  };
119
120  security.pam.services.sudo_local.touchIdAuth = true;
121}