My NixOS configuration (mirror)

feat: broke out common modules, cleaned out redundent bt firmware config

+58 -108
-4
home/shell/default.nix
··· 14 14 15 15 MANPAGER = "sh -c 'col -bx | bat -l man -p'"; 16 16 MANROFFOPT = "-c"; 17 - 18 - ELECTRON_OZONE_PLATFORM_HINT = "wayland"; 19 - 20 - NIXOS_OZONE_WL = "1"; 21 17 }; 22 18 }
-1
home/wayland/niri/default.nix
··· 17 17 DISPLAY = ":0"; 18 18 GDK_BACKEND = "wayland,x11"; 19 19 MOZ_ENABLE_WAYLAND = "1"; 20 - NIXOS_OZONE_WL = "1"; 21 20 QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; 22 21 SDL_VIDEODRIVER = "wayland"; 23 22 };
+2 -31
hosts/thwomp/configuration.nix
··· 11 11 imports = [ 12 12 ./hardware-configuration.nix 13 13 "${system}/core" 14 + "${system}/shared" 14 15 "${system}/hardware/amd.nix" 15 16 "${system}/hardware/bluetooth.nix" 16 17 "${system}/network" ··· 44 45 45 46 services.xserver.enable = true; 46 47 47 - services.xserver.xkb = { 48 - layout = "us"; 49 - variant = ""; 50 - }; 51 - 52 - # Enable CUPS to print documents. 53 - services.printing.enable = true; 54 - 55 - hardware.bluetooth.settings.General.Experimental = "true"; 56 - hardware.enableAllFirmware = true; 57 - hardware.firmware = [ 58 - pkgs.firmwareLinuxNonfree 59 - ]; 48 + systemd.services.NetworkManager-wait-online.enable = false; 60 49 61 50 boot.kernelPatches = [ 62 51 { ··· 64 53 patch = ./btusb.patch; 65 54 } 66 55 ]; 67 - 68 - hardware.graphics.enable = true; 69 56 70 57 environment.sessionVariables = { 71 - NIXOS_OZONE_WL = "1"; 72 58 ELECTRON_OZONE_PLATFORM_HINT = "auto"; 73 59 }; 74 60 75 61 environment.systemPackages = with pkgs; [ 76 - libnotify 77 - nomacs 78 - obsidian 79 62 prismlauncher 80 63 protonup-qt 81 64 tidal-hifi 82 - vim 83 65 ]; 84 - 85 - programs = { 86 - firefox = { 87 - enable = true; 88 - }; 89 - fish.enable = true; 90 - _1password-gui = { 91 - enable = true; 92 - polkitPolicyOwners = ["matthew_hre"]; 93 - }; 94 - }; 95 66 96 67 # This value determines the NixOS release from which the default 97 68 # settings for stateful data, like file locations and database versions
+1 -35
hosts/toad/configuration.nix
··· 4 4 imports = [ 5 5 ./hardware-configuration.nix 6 6 "${system}/core" 7 + "${system}/shared" 7 8 "${system}/hardware/bluetooth.nix" 8 9 "${system}/hardware/fprintd.nix" 9 10 "${system}/hardware/fwupd.nix" ··· 40 41 }; 41 42 42 43 networking.hostName = "toad"; 43 - 44 - # Configure keymap in X11 45 - services.xserver.xkb = { 46 - layout = "us"; 47 - variant = ""; 48 - }; 49 - 50 - # Enable CUPS to print documents. 51 - services.printing.enable = true; 52 - 53 - # Enable OpenGL 54 - hardware.graphics.enable = true; 55 - 56 - environment.sessionVariables = { 57 - NIXOS_OZONE_WL = "1"; 58 - ELECTRON_OZONE_PLATFORM_HINT = "wayland"; 59 - }; 60 - 61 - environment.systemPackages = with pkgs; [ 62 - libnotify 63 - nomacs 64 - obsidian 65 - vim 66 - ]; 67 - 68 - programs = { 69 - firefox = { 70 - enable = true; 71 - }; 72 - fish.enable = true; 73 - _1password-gui = { 74 - enable = true; 75 - polkitPolicyOwners = ["matthew_hre"]; 76 - }; 77 - }; 78 44 79 45 # This value determines the NixOS release from which the default 80 46 # settings for stateful data, like file locations and database versions
-35
system/hardware/specialisations.nix
··· 1 - { 2 - lib, 3 - pkgs, 4 - ... 5 - }: { 6 - specialisation = { 7 - niri = { 8 - configuration = { 9 - environment.systemPackages = [ 10 - pkgs.swww 11 - ]; 12 - 13 - programs.niri = { 14 - enable = true; 15 - package = pkgs.niri; 16 - }; 17 - 18 - # shoutout @CodedNil on gh for the fix 19 - services.keyd = { 20 - enable = true; 21 - keyboards.default = { 22 - ids = ["*"]; 23 - settings.global = { 24 - overload_tap_timeout = 200; #ms 25 - }; 26 - settings.main = { 27 - compose = "layer(meta)"; 28 - leftmeta = "overload(meta, macro(leftmeta+z))"; 29 - }; 30 - }; 31 - }; 32 - }; 33 - }; 34 - }; 35 - }
+7 -2
system/services/docker.nix
··· 1 1 { 2 - virtualisation.docker.enable = true; 3 - } 2 + virtualisation.docker = { 3 + enable = true; 4 + enableOnBoot = false; 5 + }; 6 + 7 + systemd.services."docker.socket".wantedBy = [ "sockets.target" ]; 8 + }
+15
system/shared/default.nix
··· 1 + {lib, ...}: { 2 + imports = [ 3 + ./programs.nix 4 + ./services.nix 5 + ./packages.nix 6 + ]; 7 + 8 + environment.sessionVariables = { 9 + NIXOS_OZONE_WL = "1"; 10 + 11 + # ELECTRON_OZONE_PLATFORM_HINT can be overridden per host 12 + # mainly due to some kde issues 13 + ELECTRON_OZONE_PLATFORM_HINT = lib.mkDefault "wayland"; 14 + }; 15 + }
+8
system/shared/packages.nix
··· 1 + {pkgs, ...}: { 2 + environment.systemPackages = with pkgs; [ 3 + libnotify 4 + nomacs 5 + obsidian 6 + vim 7 + ]; 8 + }
+12
system/shared/programs.nix
··· 1 + {...}: { 2 + programs = { 3 + firefox = { 4 + enable = true; 5 + }; 6 + fish.enable = true; 7 + _1password-gui = { 8 + enable = true; 9 + polkitPolicyOwners = ["matthew_hre"]; 10 + }; 11 + }; 12 + }
+13
system/shared/services.nix
··· 1 + {...}: { 2 + # Enable CUPS to print documents. 3 + services.printing.enable = true; 4 + 5 + # Enable OpenGL 6 + hardware.graphics.enable = true; 7 + 8 + # Configure keymap in X11 9 + services.xserver.xkb = { 10 + layout = "us"; 11 + variant = ""; 12 + }; 13 + }