Non stop entertainment! The wackiest NixOS configuration to-date. thevoid.cafe/projects/puzzlevision
nixos flake flake-parts dotfiles home-manager nix

๐Ÿš‘๏ธ Remove unstable rtl8821ce network driver and revert to rtw88 due to kernel crashes

thevoid.cafe ddad17d3 52b818c6

verified
+12 -21
+1
modules/home/apps/zed/default.nix
··· 84 84 PHP = mkIf cfg.enable-php { 85 85 language_servers = [ 86 86 "!phpactor" 87 + "!phptools" 87 88 "!tailwind-language-server" 88 89 "intelephense" 89 90 "..."
+2 -2
systems/x86_64-nixos/puzzlevision/default.nix
··· 15 15 sops.defaultSopsFile = ./secrets/users.yaml; 16 16 sops.age.keyFile = "/var/lib/sops-nix/key.txt"; 17 17 18 - programs.steam.enable = true; 19 - 20 18 # Create some helpful groups for development 21 19 # and permission related reasons. 22 20 users.groups = { 21 + # Group www-data used primarily for apache webservers in docker containers 22 + # The specific reason for this is that Shopware chown's plugin directories to this id, which leaves me unable to write to them outside the container 23 23 www-data.gid = 33; 24 24 }; 25 25
+9 -19
systems/x86_64-nixos/puzzlevision/hardware.nix
··· 16 16 17 17 # Some boot settings for intel CPU's 18 18 boot = { 19 - initrd.kernelModules = [ "i915" ]; 20 - kernelModules = [ 21 - "kvm-intel" 22 - "8821ce" 23 - ]; 24 - 25 - extraModulePackages = with config.boot.kernelPackages; [ 26 - rtl8821ce # Install community maintained network driver 27 - ]; 28 - 29 - blacklistedKernelModules = [ 30 - "rtw88_8821ce" # Block the default network-card driver. 31 - ]; 19 + # Disable low power mode for rtw88 driver 20 + extraModprobeConfig = '' 21 + options rtw88_pci disable_aspm=y 22 + options rtw88_core disable_lps=y 23 + ''; 32 24 33 25 # Increase swappiness, if ZRAM swap is enabled, 34 26 # as it doesn't come with the same "speed" caveats as standard swap. ··· 39 31 40 32 # Broader firmware and hardware support 41 33 hardware = { 42 - enableAllFirmware = true; 34 + enableRedistributableFirmware = true; 43 35 enableAllHardware = true; 44 36 }; 45 37 46 38 # Enable ZRAM 47 39 zramSwap = { 48 40 enable = true; 49 - priority = 0; 41 + priority = 50; 50 42 }; 51 43 52 44 services = { ··· 60 52 CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; 61 53 CPU_ENERGY_PERF_POLICY_ON_BAT = "powersave"; 62 54 63 - CPU_MIN_PERF_ON_AC = 70; 55 + CPU_MIN_PERF_ON_AC = 0; 64 56 CPU_MAX_PERF_ON_AC = 100; 65 - CPU_MIN_PERF_ON_BAT = 20; 57 + CPU_MIN_PERF_ON_BAT = 0; 66 58 CPU_MAX_PERF_ON_BAT = 50; 67 - 68 - USB_AUTOSUSPEND = 0; 69 59 }; 70 60 }; 71 61