mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-10-31 05:40:05 +00:00 
			
		
		
		
	⚡️ Improve hardware support and performance through various modifications
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
				
			
		
			
				
	
				Nix: check for unused code / Run deadnix (push) Has been cancelled
				
			
		
			
				
	
				Nix: validate flake.lock / Check Lockfile (push) Has been cancelled
				
			
		
			
				
	
				Nix: validate flake / Validate x86_64-linux (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
				
			Nix: check for unused code / Run deadnix (push) Has been cancelled
				
			Nix: validate flake.lock / Check Lockfile (push) Has been cancelled
				
			Nix: validate flake / Validate x86_64-linux (push) Has been cancelled
				
			This commit is contained in:
		
							parent
							
								
									a95bef51b8
								
							
						
					
					
						commit
						a6da14d4cf
					
				
					 7 changed files with 205 additions and 92 deletions
				
			
		
							
								
								
									
										52
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										52
									
								
								flake.lock
									
										
									
										generated
									
									
									
								
							|  | @ -7,11 +7,11 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1755511413, |         "lastModified": 1756741629, | ||||||
|         "narHash": "sha256-cBBF+nwGrSroN6ZewHPFaSThyCvwBxSZMdYEH8DxDx8=", |         "narHash": "sha256-n+mgH3NoQf8d1jd8cDp/9Mt++hhyuE3LO3ZAxzjWRZw=", | ||||||
|         "owner": "catppuccin", |         "owner": "catppuccin", | ||||||
|         "repo": "nix", |         "repo": "nix", | ||||||
|         "rev": "ca11a19d4e1d2ba5e6162f40cb71288551fd51dd", |         "rev": "cd22197da06df1eb6fabdaa2fc22c170c4f67382", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -56,11 +56,11 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1754487366, |         "lastModified": 1756770412, | ||||||
|         "narHash": "sha256-pHYj8gUBapuUzKV/kN/tR3Zvqc7o6gdFB9XKXIp1SQ8=", |         "narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=", | ||||||
|         "owner": "hercules-ci", |         "owner": "hercules-ci", | ||||||
|         "repo": "flake-parts", |         "repo": "flake-parts", | ||||||
|         "rev": "af66ad14b28a127c5c0f3bbb298218fc63528a18", |         "rev": "4524271976b625a4a605beefd893f270620fd751", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -94,11 +94,11 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1755538029, |         "lastModified": 1756842514, | ||||||
|         "narHash": "sha256-XVsragfuN8A/tMiPToejH7RofH15toeIGhlXraX+yBo=", |         "narHash": "sha256-XbtRMewPGJwTNhBC4pnBu3w/xT1XejvB0HfohC2Kga8=", | ||||||
|         "owner": "nix-community", |         "owner": "nix-community", | ||||||
|         "repo": "home-manager", |         "repo": "home-manager", | ||||||
|         "rev": "bf450a0844e80e6aa22652d3f3728f20cd974527", |         "rev": "30fc1b532645a21e157b6e33e3f8b4c154f86382", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -138,11 +138,11 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1755395461, |         "lastModified": 1756516619, | ||||||
|         "narHash": "sha256-2zsR2QAE7wnDWzzMpVDpV6k+PCrcoVf1+yiNd4dbd08=", |         "narHash": "sha256-iWNyhVIBO/CxQdLeQAfedynD68+SmIq5lj/TJpJyUSA=", | ||||||
|         "owner": "kaylorben", |         "owner": "kaylorben", | ||||||
|         "repo": "nixcord", |         "repo": "nixcord", | ||||||
|         "rev": "b1260171b674953712e093acfd285585f6586a01", |         "rev": "eed47b8dc6601e94f0b4ce71bfea349869b541c0", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -151,13 +151,28 @@ | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |     "nixos-hardware": { | ||||||
|  |       "locked": { | ||||||
|  |         "lastModified": 1756750488, | ||||||
|  |         "narHash": "sha256-e4ZAu2sjOtGpvbdS5zo+Va5FUUkAnizl4wb0/JlIL2I=", | ||||||
|  |         "owner": "NixOS", | ||||||
|  |         "repo": "nixos-hardware", | ||||||
|  |         "rev": "47eb4856cfd01eaeaa7bb5944a0f27db8fb9b94a", | ||||||
|  |         "type": "github" | ||||||
|  |       }, | ||||||
|  |       "original": { | ||||||
|  |         "owner": "NixOS", | ||||||
|  |         "repo": "nixos-hardware", | ||||||
|  |         "type": "github" | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|     "nixpkgs": { |     "nixpkgs": { | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1755186698, |         "lastModified": 1756542300, | ||||||
|         "narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=", |         "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=", | ||||||
|         "owner": "NixOS", |         "owner": "NixOS", | ||||||
|         "repo": "nixpkgs", |         "repo": "nixpkgs", | ||||||
|         "rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c", |         "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  | @ -175,6 +190,7 @@ | ||||||
|         "home-manager": "home-manager", |         "home-manager": "home-manager", | ||||||
|         "minegrub-theme": "minegrub-theme", |         "minegrub-theme": "minegrub-theme", | ||||||
|         "nixcord": "nixcord", |         "nixcord": "nixcord", | ||||||
|  |         "nixos-hardware": "nixos-hardware", | ||||||
|         "nixpkgs": "nixpkgs", |         "nixpkgs": "nixpkgs", | ||||||
|         "sops-nix": "sops-nix", |         "sops-nix": "sops-nix", | ||||||
|         "vicinae": "vicinae" |         "vicinae": "vicinae" | ||||||
|  | @ -223,11 +239,11 @@ | ||||||
|         ] |         ] | ||||||
|       }, |       }, | ||||||
|       "locked": { |       "locked": { | ||||||
|         "lastModified": 1756293534, |         "lastModified": 1756547894, | ||||||
|         "narHash": "sha256-O5YINKNzeHUnJ9Ky7Aaeh42NhcmF/La7rb0dddrbjyQ=", |         "narHash": "sha256-iu0pzPv3ArB8m9H4rH7bFMjRspA5thRV6kp9fVLagZc=", | ||||||
|         "owner": "tomromeo", |         "owner": "tomromeo", | ||||||
|         "repo": "vicinae-nix", |         "repo": "vicinae-nix", | ||||||
|         "rev": "9da69cbdecb40e16d37a77e7ba39c9dfbe8f25c5", |         "rev": "5eea3c1f5d10abc074b27c65a38b1ca3b9a8adeb", | ||||||
|         "type": "github" |         "type": "github" | ||||||
|       }, |       }, | ||||||
|       "original": { |       "original": { | ||||||
|  |  | ||||||
|  | @ -21,6 +21,7 @@ | ||||||
|   inputs = { |   inputs = { | ||||||
|     nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; |     nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||||||
|     easy-hosts.url = "github:tgirlcloud/easy-hosts"; |     easy-hosts.url = "github:tgirlcloud/easy-hosts"; | ||||||
|  |     nixos-hardware.url = "github:NixOS/nixos-hardware"; | ||||||
| 
 | 
 | ||||||
|     sops-nix = { |     sops-nix = { | ||||||
|       url = "github:Mic92/sops-nix"; |       url = "github:Mic92/sops-nix"; | ||||||
|  |  | ||||||
|  | @ -28,6 +28,9 @@ | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   # Notify on systembus events | ||||||
|  |   services.systembus-notify.enable = true; | ||||||
|  | 
 | ||||||
|   sops.secrets.wakatime-cfg = { |   sops.secrets.wakatime-cfg = { | ||||||
|     format = "binary"; |     format = "binary"; | ||||||
|     sopsFile = ./secrets/wakatime.cfg; |     sopsFile = ./secrets/wakatime.cfg; | ||||||
|  |  | ||||||
|  | @ -24,8 +24,12 @@ in | ||||||
| 
 | 
 | ||||||
|   config = mkIf cfg.enable { |   config = mkIf cfg.enable { | ||||||
|     nix = { |     nix = { | ||||||
|  |       optimise = { | ||||||
|  |         automatic = true; | ||||||
|  |         dates = [ "03:45" ]; | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|       settings = { |       settings = { | ||||||
|         auto-optimise-store = true; |  | ||||||
|         builders-use-substitutes = true; |         builders-use-substitutes = true; | ||||||
|         experimental-features = [ |         experimental-features = [ | ||||||
|           "nix-command" |           "nix-command" | ||||||
|  | @ -35,7 +39,8 @@ in | ||||||
|         keep-derivations = true; |         keep-derivations = true; | ||||||
|         keep-outputs = true; |         keep-outputs = true; | ||||||
| 
 | 
 | ||||||
|         max-jobs = "auto"; |         cores = 2; | ||||||
|  |         max-jobs = 8; | ||||||
|         warn-dirty = false; |         warn-dirty = false; | ||||||
| 
 | 
 | ||||||
|         trusted-users = cfg.trusted-users; |         trusted-users = cfg.trusted-users; | ||||||
|  | @ -44,7 +49,7 @@ in | ||||||
|       # Garbage collection configuration. |       # Garbage collection configuration. | ||||||
|       gc = { |       gc = { | ||||||
|         automatic = true; |         automatic = true; | ||||||
|         dates = "daily"; |         dates = "weekly"; | ||||||
|         options = "--delete-older-than 3d"; |         options = "--delete-older-than 3d"; | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,8 @@ | ||||||
| { config, ... }: | { ... }: | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
|     ./hardware.nix |     ./hardware.nix | ||||||
|  |     ./hardware-generated.nix | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Todo: automate this globally for all workstation and server archetypes! |   # Todo: automate this globally for all workstation and server archetypes! | ||||||
|  | @ -32,30 +33,25 @@ | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     archetypes.laptop.enable = true; |     archetypes.laptop.enable = true; | ||||||
| 
 |     system.kernel.version = "linuxPackages_zen"; | ||||||
|     system.kernel.version = "linuxPackages_6_15"; |  | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Configure 8GB SWAP partition |   # Configure some last-resort aggressive nix-daemon OOM protection | ||||||
|   swapDevices = [ |   systemd = { | ||||||
|     { |     # Create a separate slice for nix-daemon that is | ||||||
|       device = "/swapfile"; |     # memory-managed by the userspace systemd-oomd killer | ||||||
|       size = 8 * 1024; |     slices."nix-daemon".sliceConfig = { | ||||||
|     } |       ManagedOOMMemoryPressure = "kill"; | ||||||
|   ]; |       ManagedOOMMemoryPressureLimit = "50%"; | ||||||
|  |     }; | ||||||
|  |     services."nix-daemon".serviceConfig.Slice = "nix-daemon.slice"; | ||||||
|  | 
 | ||||||
|  |     # If a kernel-level OOM event does occur anyway, | ||||||
|  |     # strongly prefer killing nix-daemon child processes | ||||||
|  |     services."nix-daemon".serviceConfig.OOMScoreAdjust = 1000; | ||||||
|  |   }; | ||||||
| 
 | 
 | ||||||
|   boot = { |   boot = { | ||||||
|     kernelModules = [ "8821ce" ]; |  | ||||||
| 
 |  | ||||||
|     # Configure additional kernel modules. |  | ||||||
|     extraModulePackages = with config.boot.kernelPackages; [ |  | ||||||
|       rtl8821ce |  | ||||||
|     ]; |  | ||||||
| 
 |  | ||||||
|     blacklistedKernelModules = [ |  | ||||||
|       "rtw88_8821ce" # Block the default network-card driver. |  | ||||||
|     ]; |  | ||||||
| 
 |  | ||||||
|     # Grub configuration |     # Grub configuration | ||||||
|     loader.grub = { |     loader.grub = { | ||||||
|       # Minecraft bootloader theme |       # Minecraft bootloader theme | ||||||
|  |  | ||||||
							
								
								
									
										67
									
								
								systems/x86_64-nixos/puzzlevision/hardware-generated.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								systems/x86_64-nixos/puzzlevision/hardware-generated.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,67 @@ | ||||||
|  | # Do not modify this file!  It was generated by ‘nixos-generate-config’ | ||||||
|  | # and may be overwritten by future invocations.  Please make changes | ||||||
|  | # to /etc/nixos/configuration.nix instead. | ||||||
|  | { | ||||||
|  |   config, | ||||||
|  |   lib, | ||||||
|  |   modulesPath, | ||||||
|  |   ... | ||||||
|  | }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   imports = [ | ||||||
|  |     (modulesPath + "/installer/scan/not-detected.nix") | ||||||
|  |   ]; | ||||||
|  | 
 | ||||||
|  |   boot.initrd.availableKernelModules = [ | ||||||
|  |     "xhci_pci" | ||||||
|  |     "vmd" | ||||||
|  |     "nvme" | ||||||
|  |     "usbhid" | ||||||
|  |     "rtsx_pci_sdmmc" | ||||||
|  |   ]; | ||||||
|  |   boot.initrd.kernelModules = [ ]; | ||||||
|  |   boot.kernelModules = [ "kvm-intel" ]; | ||||||
|  |   boot.extraModulePackages = [ ]; | ||||||
|  | 
 | ||||||
|  |   fileSystems."/" = { | ||||||
|  |     device = "/dev/disk/by-uuid/864b1287-89fd-4cc0-98a5-40a3caf804c6"; | ||||||
|  |     fsType = "btrfs"; | ||||||
|  |     options = [ "subvol=@" ]; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   boot.initrd.luks.devices."luks-5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc".device = | ||||||
|  |     "/dev/disk/by-uuid/5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc"; | ||||||
|  | 
 | ||||||
|  |   fileSystems."/boot" = { | ||||||
|  |     device = "/dev/disk/by-uuid/2429-4141"; | ||||||
|  |     fsType = "vfat"; | ||||||
|  |     options = [ | ||||||
|  |       "fmask=0022" | ||||||
|  |       "dmask=0022" | ||||||
|  |     ]; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   swapDevices = [ ]; | ||||||
|  | 
 | ||||||
|  |   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking | ||||||
|  |   # (the default) this is the recommended approach. When using systemd-networkd it's | ||||||
|  |   # still possible to use this option, but it's recommended to use it in conjunction | ||||||
|  |   # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||||||
|  |   networking.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-01571e4eda2f.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-20785fae249b.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-64a49a5722c1.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-71e5fc5962fc.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-7df9905783da.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-9b746f4e7e2f.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.br-e2f470a56dfe.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.docker0.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.enp0s13f0u4u4.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.veth4e96b46.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.veth96a5ccd.useDHCP = lib.mkDefault true; | ||||||
|  |   # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; | ||||||
|  | 
 | ||||||
|  |   nixpkgs.hostPlatform = lib.mkForce "x86_64-linux"; | ||||||
|  |   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||||||
|  | } | ||||||
|  | @ -1,67 +1,92 @@ | ||||||
| # Do not modify this file!  It was generated by ‘nixos-generate-config’ |  | ||||||
| # and may be overwritten by future invocations.  Please make changes |  | ||||||
| # to /etc/nixos/configuration.nix instead. |  | ||||||
| { | { | ||||||
|  |   pkgs, | ||||||
|  |   inputs, | ||||||
|   config, |   config, | ||||||
|   lib, |  | ||||||
|   modulesPath, |  | ||||||
|   ... |   ... | ||||||
| }: | }: | ||||||
| 
 |  | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
|     (modulesPath + "/installer/scan/not-detected.nix") |     inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd | ||||||
|  |     inputs.nixos-hardware.nixosModules.common-pc-laptop | ||||||
|  |     inputs.nixos-hardware.nixosModules.common-cpu-intel | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   boot.initrd.availableKernelModules = [ |   # Some boot settings for intel CPU's | ||||||
|     "xhci_pci" |   boot = { | ||||||
|     "vmd" |     initrd.kernelModules = [ "i915" ]; | ||||||
|     "nvme" |     kernelModules = [ | ||||||
|     "usbhid" |       "kvm-intel" | ||||||
|     "rtsx_pci_sdmmc" |       "8821ce" | ||||||
|   ]; |     ]; | ||||||
|   boot.initrd.kernelModules = [ ]; |  | ||||||
|   boot.kernelModules = [ "kvm-intel" ]; |  | ||||||
|   boot.extraModulePackages = [ ]; |  | ||||||
| 
 | 
 | ||||||
|   fileSystems."/" = { |     extraModulePackages = with config.boot.kernelPackages; [ | ||||||
|     device = "/dev/disk/by-uuid/864b1287-89fd-4cc0-98a5-40a3caf804c6"; |       rtl8821ce # Install community maintained network driver | ||||||
|     fsType = "btrfs"; |     ]; | ||||||
|     options = [ "subvol=@" ]; |  | ||||||
|   }; |  | ||||||
| 
 | 
 | ||||||
|   boot.initrd.luks.devices."luks-5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc".device = |     blacklistedKernelModules = [ | ||||||
|     "/dev/disk/by-uuid/5fd4fc76-d5c5-46c3-b952-1a7a7ff3a1fc"; |       "rtw88_8821ce" # Block the default network-card driver. | ||||||
| 
 |  | ||||||
|   fileSystems."/boot" = { |  | ||||||
|     device = "/dev/disk/by-uuid/2429-4141"; |  | ||||||
|     fsType = "vfat"; |  | ||||||
|     options = [ |  | ||||||
|       "fmask=0022" |  | ||||||
|       "dmask=0022" |  | ||||||
|     ]; |     ]; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   # Enable OpenGL and install additional drivers for intel video acceleration | ||||||
|  |   hardware = { | ||||||
|  |     graphics = { | ||||||
|  |       enable = true; | ||||||
|  |       extraPackages = with pkgs; [ | ||||||
|  |         intel-ocl | ||||||
|  |         intel-media-driver | ||||||
|  |         vaapiVdpau | ||||||
|  |         libvdpau-va-gl | ||||||
|  |       ]; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     # Broader firmware and hardware support | ||||||
|  |     enableAllFirmware = true; | ||||||
|  |     enableAllHardware = true; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   environment.sessionVariables = { | ||||||
|  |     LIBVA_DRIVER_NAME = "iHD"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|  |   # Enable ZRAM and disable standard SWAP | ||||||
|  |   zramSwap.enable = true; | ||||||
|   swapDevices = [ ]; |   swapDevices = [ ]; | ||||||
| 
 | 
 | ||||||
|   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking |   services = { | ||||||
|   # (the default) this is the recommended approach. When using systemd-networkd it's |     # Enable TLP for power management profiles on AC and Battery | ||||||
|   # still possible to use this option, but it's recommended to use it in conjunction |     tlp = { | ||||||
|   # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. |       enable = true; | ||||||
|   networking.useDHCP = lib.mkDefault true; |       settings = { | ||||||
|   # networking.interfaces.br-01571e4eda2f.useDHCP = lib.mkDefault true; |         CPU_SCALING_GOVERNOR_ON_AC = "performance"; | ||||||
|   # networking.interfaces.br-20785fae249b.useDHCP = lib.mkDefault true; |         CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; | ||||||
|   # networking.interfaces.br-64a49a5722c1.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.br-71e5fc5962fc.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.br-7df9905783da.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.br-9b746f4e7e2f.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.br-e2f470a56dfe.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.docker0.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.enp0s13f0u4u4.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.veth4e96b46.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.veth96a5ccd.useDHCP = lib.mkDefault true; |  | ||||||
|   # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; |  | ||||||
| 
 | 
 | ||||||
|   nixpkgs.hostPlatform = lib.mkForce "x86_64-linux"; |         CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; | ||||||
|   hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; |         CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; | ||||||
|  | 
 | ||||||
|  |         CPU_MIN_PERF_ON_AC = 0; | ||||||
|  |         CPU_MAX_PERF_ON_AC = 100; | ||||||
|  |         CPU_MIN_PERF_ON_BAT = 0; | ||||||
|  |         CPU_MAX_PERF_ON_BAT = 30; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     # Disable power-profiles-daemon in favor of TLP :3 | ||||||
|  |     power-profiles-daemon.enable = false; | ||||||
|  | 
 | ||||||
|  |     # Kill processes before they can cause an OOM exception | ||||||
|  |     earlyoom = { | ||||||
|  |       enable = true; | ||||||
|  |       enableNotifications = true; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     # Enable Thermald for improved overheating protection | ||||||
|  |     thermald.enable = true; | ||||||
|  | 
 | ||||||
|  |     # Instruct XServer to use the correct video drivers | ||||||
|  |     xserver.videoDrivers = [ | ||||||
|  |       "i915" | ||||||
|  |       "intel" | ||||||
|  |     ]; | ||||||
|  |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue