main.nix (6581B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | _: { config, lib, osConfig ? null, ... }: lib.mkIf (osConfig != null) ( with lib.hm.gvariant; { ## Dconf Keys ## # Generated via nix-community/dconf2nix # Use 'dconf watch /' to record changes dconf.settings = { # Keyboard Shortcuts "org/gnome/desktop/wm/keybindings" = { always-on-top = ["<Super>p"]; begin-move = []; begin-resize = []; close = [ "<Super>q" "<Alt>F4" ]; cycle-group = []; cycle-group-backward = []; maximize = ["<Super>Up"]; minimize = ["<Super>Down"]; move-to-center = ["<Super>c"]; move-to-monitor-down = []; move-to-monitor-left = ["<Primary><Super>Left"]; move-to-monitor-right = ["<Primary><Super>Right"]; move-to-monitor-up = []; move-to-workspace-1 = []; move-to-workspace-down = []; move-to-workspace-last = []; move-to-workspace-left = ["<Shift><Super>Left"]; move-to-workspace-right = ["<Shift><Super>Right"]; move-to-workspace-up = []; panel-main-menu = []; panel-run-dialog = ["<Super>F2"]; switch-applications = ["<Alt>Tab"]; switch-applications-backward = ["<Shift><Alt>Tab"]; switch-group = ["<Super>Tab"]; switch-group-backward = ["<Shift><Super>Tab"]; switch-to-workspace-down = []; switch-to-workspace-left = ["<Super>Left"]; switch-to-workspace-right = ["<Super>Right"]; switch-to-workspace-up = []; toggle-fullscreen = ["<Shift><Super>f"]; toggle-maximized = ["<Super>m"]; unmaximize = []; }; "org/gnome/mutter/keybindings" = { toggle-tiled-left = []; toggle-tiled-right = []; }; "org/gnome/shell/keybindings" = { focus-active-notification = []; open-application-menu = []; switch-to-application-1 = ["<Super>1"]; switch-to-application-2 = ["<Super>2"]; switch-to-application-3 = ["<Super>3"]; switch-to-application-4 = ["<Super>4"]; switch-to-application-5 = ["<Super>5"]; switch-to-application-6 = ["<Super>6"]; switch-to-application-7 = ["<Super>7"]; switch-to-application-8 = ["<Super>8"]; switch-to-application-9 = ["<Super>9"]; toggle-application-view = []; toggle-message-tray = ["<Super><Shift>n"]; toggle-overview = []; toggle-quick-settings = []; }; "org/gnome/settings-daemon/plugins/media-keys" = { area-screenshot = ["Print"]; area-screenshot-clip = []; control-center = ["<Super><Shift>grave"]; email = ["<Super>e"]; home = ["<Super>f"]; magnifier = ["<Super>x"]; magnifier-zoom-in = ["<Super>equal"]; magnifier-zoom-out = ["<Super>minus"]; rotate-video-lock-static = []; screencast = ["<Alt>Print"]; screenreader = []; screenshot = ["<Shift>Print"]; screenshot-clip = []; screensaver = ["<Super>l"]; terminal = []; volume-down = ["AudioLowerVolume"]; volume-up = ["AudioRaiseVolume"]; window-screenshot = ["<Primary>Print"]; window-screenshot-clip = []; www = ["<Super>grave"]; custom-keybindings = [ "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/" "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/" ]; }; "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = { binding = "<Super>Return"; command = "resources"; name = "Task Manager"; }; "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = { binding = "<Super>t"; command = "ghostty"; name = "Terminal"; }; "org/gnome/desktop/wm/preferences" = { button-layout = "appmenu:minimize,maximize,close"; focus-mode = "click"; titlebar-font = "${config.stylix.fonts.sansSerif.name} Bold 11"; visual-bell = false; }; # Core Settings "org/gnome/desktop/a11y".always-show-universal-access-status = true; "org/gnome/desktop/a11y/applications".screen-magnifier-enabled = false; "org/gnome/mutter" = { attach-modal-dialogs = true; center-new-windows = true; dynamic-workspaces = true; edge-tiling = false; focus-change-on-pointer-rest = true; overlay-key = "Super"; workspaces-only-on-primary = true; experimental-features = [ "scale-monitor-framebuffer" "xwayland-native-scaling" ]; }; "org/gnome/desktop/interface" = { accent-color = "blue"; clock-show-weekday = true; enable-animations = true; enable-hot-corners = true; font-antialiasing = "grayscale"; font-hinting = "slight"; gtk-im-module = "gtk-im-context-simple"; locate-pointer = true; show-battery-percentage = true; toolkit-accessibility = false; }; "org/gnome/desktop/peripherals/touchpad" = { click-method = "areas"; tap-to-click = true; two-finger-scrolling-enabled = true; }; "org/gnome/settings-daemon/plugins/power" = { power-button-action = "interactive"; sleep-inactive-ac-type = "nothing"; sleep-inactive-battery-timeout = 1800; }; "org/gnome/settings-daemon/plugins/color" = { night-light-enabled = true; night-light-schedule-automatic = false; night-light-schedule-from = 19.0; night-light-schedule-to = 7.0; night-light-temperature = mkUint32 3700; }; "org/gnome/desktop/a11y/magnifier" = { mouse-tracking = "proportional"; show-cross-hairs = false; }; "org/gnome/desktop/privacy" = { disable-microphone = false; old-files-age = mkUint32 7; remember-recent-files = false; remove-old-temp-files = true; remove-old-trash-files = true; }; "org/gnome/desktop/sound" = { allow-volume-above-100-percent = true; event-sounds = true; theme-name = "__custom"; }; "org/gnome/desktop/screensaver" = { color-shading-type = "solid"; lock-delay = mkUint32 0; lock-enabled = false; picture-options = "zoom"; primary-color = "#000000000000"; secondary-color = "#000000000000"; }; }; } ) |