Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 1 | # Edit this configuration file to define what should be installed on |
| 2 | # your system. Help is available in the configuration.nix(5) man page |
| 3 | # and in the NixOS manual (accessible by running ‘nixos-help’). |
| 4 | |
| 5 | { config, pkgs, lib, ... }: |
| 6 | |
Skyler Turner | 0872be9 | 2022-01-24 11:31:38 +0000 | [diff] [blame] | 7 | { |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 8 | imports = |
| 9 | [ # Include the results of the hardware scan. |
| 10 | ./hardware-configuration.nix |
Skyler Turner | 444ffc2 | 2021-12-20 11:28:06 +0000 | [diff] [blame] | 11 | ../secrets/networking-configuration.nix |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 12 | ./packaging-configuration.nix |
Skyler Turner | 657b049 | 2022-02-06 21:42:02 +0000 | [diff] [blame] | 13 | ./containerd/containerd.nix |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 14 | ]; |
| 15 | |
Skyler Turner | 32dbfb4 | 2021-12-24 15:50:22 +0000 | [diff] [blame] | 16 | # Prepare nix flakes |
| 17 | nix = { |
| 18 | package = pkgs.nixFlakes; |
| 19 | extraOptions = '' |
| 20 | experimental-features = nix-command flakes |
| 21 | ''; |
| 22 | }; |
| 23 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 24 | # Use the systemd-boot EFI boot loader. |
| 25 | boot.loader.systemd-boot.enable = true; |
| 26 | boot.loader.efi.canTouchEfiVariables = true; |
| 27 | boot.loader.grub.useOSProber = true; |
| 28 | |
Skyler Turner | 7b0051e | 2021-12-29 15:46:56 +0000 | [diff] [blame] | 29 | # Enable emulated systems |
Skyler Turner | 107ae41 | 2021-12-29 18:34:59 +0000 | [diff] [blame] | 30 | boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv6l-linux" ]; |
Skyler Turner | 7b0051e | 2021-12-29 15:46:56 +0000 | [diff] [blame] | 31 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 32 | # Enable apparmor |
| 33 | security.apparmor.enable = true; |
| 34 | security.apparmor.killUnconfinedConfinables = true; |
| 35 | |
| 36 | # Set your time zone. |
| 37 | time.timeZone = "Europe/London"; |
| 38 | |
| 39 | # Select internationalisation properties. |
| 40 | i18n.defaultLocale = "en_US.UTF-8"; |
| 41 | console = { |
| 42 | font = "Lat2-Terminus16"; |
| 43 | keyMap = "uk"; |
| 44 | }; |
| 45 | |
| 46 | # Enable the X11 windowing system. |
| 47 | services.xserver = { |
| 48 | enable = true; |
| 49 | desktopManager = { |
| 50 | xterm.enable = false; |
| 51 | # xfce.enable = true; |
| 52 | }; |
Skyler Turner | 27ee4cb | 2022-03-06 22:29:09 +0000 | [diff] [blame] | 53 | displayManager.startx.enable = true; |
| 54 | # displayManager.sddm.enable = true; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 55 | }; |
| 56 | |
Skyler Turner | 072db1e | 2022-02-27 01:01:59 +0000 | [diff] [blame] | 57 | services = { |
| 58 | syncthing = { |
| 59 | enable = true; |
| 60 | user = "minion"; |
| 61 | dataDir = "/home/minion/Documents"; # Default folder for new synced folders |
| 62 | configDir = "/home/minion/.config/syncthing"; # Folder for Syncthing's settings and keys |
| 63 | }; |
| 64 | }; |
| 65 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 66 | # And wayland |
Skyler Turner | 27ee4cb | 2022-03-06 22:29:09 +0000 | [diff] [blame] | 67 | /* programs.sway = { |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 68 | enable = true; |
| 69 | wrapperFeatures.gtk = true; # so that gtk works properly |
| 70 | extraPackages = with pkgs; [ |
| 71 | swaylock |
| 72 | swayidle |
| 73 | wl-clipboard |
| 74 | mako # notification daemon |
| 75 | alacritty # Alacritty is the default terminal in the config |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 76 | ]; |
Skyler Turner | 27ee4cb | 2022-03-06 22:29:09 +0000 | [diff] [blame] | 77 | };*/ |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 78 | |
Skyler Turner | ef649b0 | 2022-02-06 16:05:24 +0000 | [diff] [blame] | 79 | programs.qt5ct.enable = true; |
Skyler Turner | 27ee4cb | 2022-03-06 22:29:09 +0000 | [diff] [blame] | 80 | # programs.waybar.enable = false; # true; |
Skyler Turner | e24f21c | 2022-02-06 16:02:53 +0000 | [diff] [blame] | 81 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 82 | # Get screensharing to work |
| 83 | xdg = { |
| 84 | portal = { |
| 85 | enable = true; |
| 86 | extraPortals = with pkgs; [ |
| 87 | xdg-desktop-portal-wlr |
| 88 | xdg-desktop-portal-gtk |
| 89 | ]; |
| 90 | gtkUsePortal = true; |
Skyler Turner | 84ec77c | 2022-01-14 09:05:57 +0000 | [diff] [blame] | 91 | wlr.enable = true; |
| 92 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 93 | }; |
| 94 | }; |
| 95 | |
Skyler Turner | 69ca44c | 2022-03-09 06:56:20 +0000 | [diff] [blame] | 96 | systemd.user.services.xdg-desktop-portal = { |
| 97 | unitConfig = { |
| 98 | After = "graphical-session.target"; |
| 99 | }; |
| 100 | }; |
| 101 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 102 | # Configure keymap in X11 |
| 103 | services.xserver.layout = "gb"; |
| 104 | # services.xserver.xkbOptions = "eurosign:e"; |
Skyler Turner | 55c8ee8 | 2022-03-08 19:22:16 +0000 | [diff] [blame] | 105 | services.upower.enable = true; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 106 | |
| 107 | # Permit and install steam |
| 108 | nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ |
| 109 | "steam" |
| 110 | "steam-original" |
| 111 | "steam-runtime" |
| 112 | ]; |
| 113 | |
| 114 | programs.steam.enable = true; |
| 115 | |
| 116 | |
| 117 | # Enable CUPS to print documents. |
| 118 | services.printing.enable = true; |
| 119 | |
| 120 | # Enable sound. |
| 121 | sound.enable = true; |
| 122 | hardware.pulseaudio.enable = false; |
| 123 | services.pipewire = { |
| 124 | enable = true; |
| 125 | alsa = { |
| 126 | enable = true; |
| 127 | support32Bit = true; |
| 128 | }; |
| 129 | pulse.enable = true; |
Skyler Turner | 4ca71fb | 2022-02-20 11:12:22 +0000 | [diff] [blame] | 130 | /*config.pipewire = { |
Skyler Turner | 074765b | 2022-02-20 10:46:58 +0000 | [diff] [blame] | 131 | "context.modules" = [ |
Skyler Turner | 2f6b3ed | 2022-02-19 14:37:14 +0000 | [diff] [blame] | 132 | { |
Skyler Turner | 074765b | 2022-02-20 10:46:58 +0000 | [diff] [blame] | 133 | name = "libpipewire-module-filter-chain"; |
| 134 | args = { |
| 135 | "node.name" = "effect_output.virtual-surround-7.1-hesuvi"; |
| 136 | "node.description" = "Virtual Surround Sink"; |
| 137 | "media.name" = "Virtual Surround Sink"; |
| 138 | nodes = [ |
| 139 | # duplicate inputs |
| 140 | { type = "builtin"; label = "copy"; name = "copyFL"; } |
| 141 | { type = "builtin"; label = "copy"; name = "copyFR"; } |
| 142 | { type = "builtin"; label = "copy"; name = "copyFC"; } |
| 143 | { type = "builtin"; label = "copy"; name = "copyRL"; } |
| 144 | { type = "builtin"; label = "copy"; name = "copyRR"; } |
| 145 | { type = "builtin"; label = "copy"; name = "copySL"; } |
| 146 | { type = "builtin"; label = "copy"; name = "copySR"; } |
| 147 | { type = "builtin"; label = "copy"; name = "copyLFE"; } |
| 148 | |
Skyler Turner | 4ca71fb | 2022-02-20 11:12:22 +0000 | [diff] [blame] | 149 | # apply hrir - HeSuVi 14-channel WAV (not the *-.wav variants) (note: 44 in HeSuVi are the same, but resampled to 44100) |
Skyler Turner | 074765b | 2022-02-20 10:46:58 +0000 | [diff] [blame] | 150 | { type = "builtin"; label = "convolver"; name = "convFL_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 0; }; } |
| 151 | { type = "builtin"; label = "convolver"; name = "convFL_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 1; }; } |
| 152 | { type = "builtin"; label = "convolver"; name = "convSL_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 2; }; } |
| 153 | { type = "builtin"; label = "convolver"; name = "convSL_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 3; }; } |
| 154 | { type = "builtin"; label = "convolver"; name = "convRL_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 4; }; } |
| 155 | { type = "builtin"; label = "convolver"; name = "convRL_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 5; }; } |
| 156 | { type = "builtin"; label = "convolver"; name = "convFC_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 6; }; } |
| 157 | { type = "builtin"; label = "convolver"; name = "convFR_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 7; }; } |
| 158 | { type = "builtin"; label = "convolver"; name = "convFR_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 8; }; } |
| 159 | { type = "builtin"; label = "convolver"; name = "convSR_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 9; }; } |
| 160 | { type = "builtin"; label = "convolver"; name = "convSR_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 10; }; } |
| 161 | { type = "builtin"; label = "convolver"; name = "convRR_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 11; }; } |
| 162 | { type = "builtin"; label = "convolver"; name = "convRR_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 12; }; } |
| 163 | { type = "builtin"; label = "convolver"; name = "convFC_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 13; }; } |
| 164 | |
| 165 | # treat LFE as FC |
| 166 | { type = "builtin"; label = "convolver"; name = "convLFE_R"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 13; }; } |
| 167 | { type = "builtin"; label = "convolver"; name = "convLFE_L"; config = { filename = "hrir_hesuvi/hrir.wav"; channel = 6; }; } |
| 168 | |
| 169 | # stereo output |
| 170 | { type = "builtin"; label = "mixer"; name = "mixR"; } |
| 171 | { type = "builtin"; label = "mixer"; name = "mixL"; } |
| 172 | ]; |
| 173 | links = [ |
| 174 | # input |
| 175 | { output = "copyFL:Out"; input="convFL_L:In"; } |
| 176 | { output = "copyFL:Out"; input="convFL_R:In"; } |
| 177 | { output = "copySL:Out"; input="convSL_L:In"; } |
| 178 | { output = "copySL:Out"; input="convSL_R:In"; } |
| 179 | { output = "copyRL:Out"; input="convRL_L:In"; } |
| 180 | { output = "copyRL:Out"; input="convRL_R:In"; } |
| 181 | { output = "copyFC:Out"; input="convFC_L:In"; } |
| 182 | { output = "copyFR:Out"; input="convFR_R:In"; } |
| 183 | { output = "copyFR:Out"; input="convFR_L:In"; } |
| 184 | { output = "copySR:Out"; input="convSR_R:In"; } |
| 185 | { output = "copySR:Out"; input="convSR_L:In"; } |
| 186 | { output = "copyRR:Out"; input="convRR_R:In"; } |
| 187 | { output = "copyRR:Out"; input="convRR_L:In"; } |
| 188 | { output = "copyFC:Out"; input="convFC_R:In"; } |
| 189 | { output = "copyLFE:Out"; input="convLFE_L:In"; } |
| 190 | { output = "copyLFE:Out"; input="convLFE_R:In"; } |
| 191 | |
| 192 | # output |
| 193 | { output = "convFL_L:Out"; input="mixL:In 1"; } |
| 194 | { output = "convFL_R:Out"; input="mixR:In 1"; } |
| 195 | { output = "convSL_L:Out"; input="mixL:In 2"; } |
| 196 | { output = "convSL_R:Out"; input="mixR:In 2"; } |
| 197 | { output = "convRL_L:Out"; input="mixL:In 3"; } |
| 198 | { output = "convRL_R:Out"; input="mixR:In 3"; } |
| 199 | { output = "convFC_L:Out"; input="mixL:In 4"; } |
| 200 | { output = "convFC_R:Out"; input="mixR:In 4"; } |
| 201 | { output = "convFR_R:Out"; input="mixR:In 5"; } |
| 202 | { output = "convFR_L:Out"; input="mixL:In 5"; } |
| 203 | { output = "convSR_R:Out"; input="mixR:In 6"; } |
| 204 | { output = "convSR_L:Out"; input="mixL:In 6"; } |
| 205 | { output = "convRR_R:Out"; input="mixR:In 7"; } |
| 206 | { output = "convRR_L:Out"; input="mixL:In 7"; } |
| 207 | { output = "convLFE_R:Out"; input="mixR:In 8"; } |
| 208 | { output = "convLFE_L:Out"; input="mixL:In 8"; } |
| 209 | ]; |
| 210 | inputs = [ "copyFL:In" "copyFR:In" "copyFC:In" "copyLFE:In" "copyRL:In" "copyRR:In" "copySL:In" "copySR:In" ]; |
| 211 | outputs = [ "mixL:Out" "mixR:Out" ]; |
| 212 | }; |
| 213 | "capture.props" = { |
| 214 | "media.class" = "Audio/Sink"; |
| 215 | "audio.channels" = 8; |
| 216 | "audio.position" = [ "FL" "FR" "FC" "LFE" "RL" "RR" "SL" "SR" ]; |
| 217 | }; |
| 218 | "playback.props" = { |
| 219 | "node.passive" = true; |
| 220 | "audio.channels" = 2; |
| 221 | "audio.position" = [ "FL" "FR" ]; |
| 222 | }; |
Skyler Turner | 2f6b3ed | 2022-02-19 14:37:14 +0000 | [diff] [blame] | 223 | } |
| 224 | ]; |
Skyler Turner | 4ca71fb | 2022-02-20 11:12:22 +0000 | [diff] [blame] | 225 | };*/ |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 226 | }; |
Skyler Turner | 2f6b3ed | 2022-02-19 14:37:14 +0000 | [diff] [blame] | 227 | environment.etc."pipewire/7.1-surround-sound.conf".source = ./pipewire/7.1-surround-sound.conf; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 228 | |
Skyler Turner | 716da2d | 2022-02-20 20:40:02 +0000 | [diff] [blame] | 229 | hardware.openrazer.enable = true; |
| 230 | hardware.openrazer.users = [ "minion" ]; |
| 231 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 232 | # Enable touchpad support (enabled default in most desktopManager). |
| 233 | services.xserver.libinput.enable = true; |
| 234 | |
Skyler Turner | be54371 | 2022-03-08 19:21:06 +0000 | [diff] [blame] | 235 | programs.dconf.enable = true; |
Skyler Turner | 7145c2d | 2022-03-08 19:19:10 +0000 | [diff] [blame] | 236 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 237 | # Define a user account. Don't forget to set a password with ‘passwd’. |
| 238 | users.users.minion = { |
| 239 | isNormalUser = true; |
Skyler Turner | 8dfcf20 | 2022-02-17 17:53:35 +0000 | [diff] [blame] | 240 | extraGroups = [ "wheel" "kvm" "docker" "containerd" "dialout" ]; # Enable ‘sudo’ for the user. |
Skyler Turner | 7fe8a24 | 2022-02-06 00:42:28 +0000 | [diff] [blame] | 241 | shell = pkgs.zsh; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 242 | }; |
| 243 | |
| 244 | # List packages installed in system profile. To search, run: |
| 245 | # $ nix search wget |
Skyler Turner | a3ab14b | 2022-01-24 11:37:41 +0000 | [diff] [blame] | 246 | environment.systemPackages = with pkgs; [ |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 247 | vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. |
| 248 | ((emacsPackagesNgGen emacs).emacsWithPackages (epkgs: [ |
| 249 | epkgs.vterm |
| 250 | epkgs.emacsql-sqlite |
| 251 | ])) # Emacs + vterm-module (needed for vterm) |
| 252 | wget |
| 253 | firefox |
| 254 | chromium # Install chromium if needed |
| 255 | texlive.combined.scheme-full |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 256 | keybase-gui |
Skyler Turner | ee73be4 | 2022-01-10 11:02:46 +0000 | [diff] [blame] | 257 | bluez |
Skyler Turner | 1a7d0b4 | 2022-01-18 10:27:32 +0000 | [diff] [blame] | 258 | macchanger |
Skyler Turner | b4541be | 2022-01-21 19:38:55 +0000 | [diff] [blame] | 259 | comic-relief |
Skyler Turner | b408dcf | 2022-02-04 23:48:08 +0000 | [diff] [blame] | 260 | qemu_kvm |
Skyler Turner | 5954aae | 2022-02-06 16:03:51 +0000 | [diff] [blame] | 261 | polkit_gnome |
Skyler Turner | 785a8a6 | 2022-02-06 16:12:59 +0000 | [diff] [blame] | 262 | gtk-engine-murrine |
| 263 | gtk_engines |
| 264 | gsettings-desktop-schemas |
| 265 | lxappearance |
Skyler Turner | bfe0f54 | 2022-02-06 21:45:00 +0000 | [diff] [blame] | 266 | ] ++ (import ./containerd/systemPackages.nix pkgs).systemPackages; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 267 | |
| 268 | # environment.systemPackages = [ |
| 269 | # import /scripts/jetbrains.rider.nix |
| 270 | # ]; |
| 271 | |
| 272 | fonts.fonts = with pkgs; [ |
| 273 | nerdfonts |
| 274 | noto-fonts |
| 275 | noto-fonts-cjk |
| 276 | noto-fonts-emoji |
| 277 | liberation_ttf |
| 278 | fira-code |
| 279 | fira-code-symbols |
| 280 | mplus-outline-fonts |
| 281 | dina-font |
| 282 | proggyfonts |
| 283 | roboto |
| 284 | ]; |
| 285 | |
| 286 | # Some programs need SUID wrappers, can be configured further or are |
| 287 | # started in user sessions. |
| 288 | programs.mtr.enable = true; |
Skyler Turner | f2a29ee | 2022-02-05 23:39:37 +0000 | [diff] [blame] | 289 | programs.kdeconnect.enable = true; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 290 | programs.gnupg.agent = { |
| 291 | enable = true; |
| 292 | enableSSHSupport = true; |
| 293 | }; |
| 294 | |
| 295 | # List services that you want to enable: |
| 296 | |
| 297 | # Enable the OpenSSH daemon. |
| 298 | services.openssh.enable = true; |
| 299 | services.keybase.enable = true; |
Skyler Turner | a6cfb63 | 2022-01-16 23:03:43 +0000 | [diff] [blame] | 300 | services.kbfs.enable = true; |
| 301 | services.kbfs.enableRedirector = true; |
Skyler Turner | cde828a | 2022-02-02 09:41:56 +0000 | [diff] [blame] | 302 | security.wrappers.keybase-redirector.owner = "root"; |
Skyler Turner | a620ae9 | 2022-02-24 08:26:31 +0000 | [diff] [blame] | 303 | security.wrappers.keybase-redirector.group = "users"; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 304 | services.gnome.gnome-keyring.enable = true; |
| 305 | services.i2p.enable = true; |
Skyler Turner | 8763725 | 2022-02-01 12:28:51 +0000 | [diff] [blame] | 306 | services.tlp.enable = true; |
Skyler Turner | 32dbfb4 | 2021-12-24 15:50:22 +0000 | [diff] [blame] | 307 | virtualisation.docker.enable = true; |
Skyler Turner | f2a29ee | 2022-02-05 23:39:37 +0000 | [diff] [blame] | 308 | virtualisation.docker.enableOnBoot = false; |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 309 | |
Skyler Turner | fff67b5 | 2022-02-08 21:29:33 +0000 | [diff] [blame] | 310 | hardware.bluetooth.enable = true; |
| 311 | |
Skyler Turner | 5954aae | 2022-02-06 16:03:51 +0000 | [diff] [blame] | 312 | environment.pathsToLink = [ "/share/zsh" "/libexec" ]; |
Skyler Turner | 1035c8c | 2022-02-05 23:43:34 +0000 | [diff] [blame] | 313 | |
Skyler Turner | 9848370 | 2022-02-04 23:25:21 +0000 | [diff] [blame] | 314 | virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm; |
Skyler Turner | 2ee83f8 | 2022-02-04 23:18:51 +0000 | [diff] [blame] | 315 | virtualisation.kvmgt.enable = true; |
| 316 | |
Skyler Turner | ff2168b | 2022-01-16 16:19:50 +0000 | [diff] [blame] | 317 | services.openvpn.servers = { |
Skyler Turner | 3a7d779 | 2022-01-16 16:23:50 +0000 | [diff] [blame] | 318 | clicks = { config = '' config /home/minion/Nix/secrets/clicks/client.ovpn ''; }; |
Skyler Turner | ff2168b | 2022-01-16 16:19:50 +0000 | [diff] [blame] | 319 | }; |
| 320 | |
Skyler Turner | df40c9e | 2022-03-09 09:35:42 +0000 | [diff] [blame^] | 321 | environment.etc = { |
| 322 | "pam.d/swaylock" = { |
| 323 | mode = "0777"; |
| 324 | text = '' |
| 325 | auth include login |
| 326 | ''; |
| 327 | }; |
| 328 | }; |
| 329 | |
Skyler Turner | 4f5f11b | 2022-01-14 23:36:39 +0000 | [diff] [blame] | 330 | nixpkgs.overlays = [ |
| 331 | (self: super: { |
| 332 | polkit = super.polkit.overrideAttrs (oldAttrs: { |
| 333 | patches = oldAttrs.patches ++ [ |
| 334 | (super.fetchpatch { |
| 335 | url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/716a273ce0af467968057f3e107156182bd290b0.patch"; |
| 336 | sha256 = "sha256-hOJJhUmxXm87W1ZU9Y1NJ8GCyKvPjbIVtCHlhRGlN8k="; |
| 337 | })]; |
| 338 | }); |
| 339 | }) |
| 340 | ]; |
| 341 | |
Skyler Turner | b036252 | 2022-02-25 09:36:23 +0000 | [diff] [blame] | 342 | xdg.mime.defaultApplications = { |
| 343 | "text/html" = "chromium-browser.desktop"; |
| 344 | "x-scheme-handler/http" = "chromium-browser.desktop"; |
| 345 | "x-scheme-handler/https" = "chromium-browser.desktop"; |
| 346 | "x-scheme-handler/about" = "chromium-browser.desktop"; |
| 347 | "x-scheme-handler/unknown" = "chromium-browser.desktop"; |
| 348 | }; |
| 349 | |
Skyler Turner | 95f6850 | 2022-02-25 09:57:21 +0000 | [diff] [blame] | 350 | # environment.sessionsVariables.DEFAULT_BROWSER = "${pkgs.chromium}/bin/chromium"; |
Skyler Turner | b036252 | 2022-02-25 09:36:23 +0000 | [diff] [blame] | 351 | |
| 352 | |
Skyler Turner | 95f6850 | 2022-02-25 09:57:21 +0000 | [diff] [blame] | 353 | boot.supportedFilesystems = [ "kbfs" ]; |
| 354 | |
Skyler Turner | 205aff1 | 2021-12-20 11:22:57 +0000 | [diff] [blame] | 355 | # This value determines the NixOS release from which the default |
| 356 | # settings for stateful data, like file locations and database versions |
| 357 | # on your system were taken. It‘s perfectly fine and recommended to leave |
| 358 | # this value at the release version of the first install of this system. |
| 359 | # Before changing this value read the documentation for this option |
| 360 | # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). |
| 361 | system.stateVersion = "21.11"; # Did you read the comment? |
| 362 | |
| 363 | } |
| 364 | |