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