mirror of
				https://github.com/librephoenix/nixos-config
				synced 2025-10-30 15:33:59 +05:30 
			
		
		
		
	Hardware + filesystem optimzations (I think..)
This commit is contained in:
		
							parent
							
								
									4eb54c3fe6
								
							
						
					
					
						commit
						e738c2475b
					
				
					 5 changed files with 26 additions and 7 deletions
				
			
		|  | @ -36,8 +36,10 @@ | ||||||
|     nixpkgs-patched = (import nixpkgs { inherit system; }).applyPatches { |     nixpkgs-patched = (import nixpkgs { inherit system; }).applyPatches { | ||||||
|       name = "nixpkgs-patched"; |       name = "nixpkgs-patched"; | ||||||
|       src = nixpkgs; |       src = nixpkgs; | ||||||
|       patches = [ ./patches/emacs-no-version-check.patch |       patches = [ | ||||||
|                   ./patches/nixos-nixpkgs-268027.patch ]; |                   ./patches/emacs-no-version-check.patch | ||||||
|  |                   ./patches/nixos-nixpkgs-268027.patch | ||||||
|  |                 ]; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     # configure pkgs |     # configure pkgs | ||||||
|  |  | ||||||
|  | @ -13,10 +13,15 @@ | ||||||
|   boot.kernelModules = [ "kvm-amd" ]; |   boot.kernelModules = [ "kvm-amd" ]; | ||||||
|   boot.extraModulePackages = [ ]; |   boot.extraModulePackages = [ ]; | ||||||
| 
 | 
 | ||||||
|  |   services.btrfs.autoScrub = { | ||||||
|  |     enable = true; | ||||||
|  |     interval = "weekly"; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   fileSystems."/" = |   fileSystems."/" = | ||||||
|     { device = "/dev/disk/by-uuid/637d8261-0650-4ece-a35b-59d97baf64a7"; |     { device = "/dev/disk/by-uuid/637d8261-0650-4ece-a35b-59d97baf64a7"; | ||||||
|       fsType = "btrfs"; |       fsType = "btrfs"; | ||||||
|       options = [ "noatime,compress=lzo,space_cache=v2,subvol=@" ]; |       options = [ "noatime,compress=zstd:2,space_cache=v2,subvol=@" ]; | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|   boot.initrd.luks.devices."luks-385106b5-71f7-460e-9a2b-2416f3b54cb6".device = "/dev/disk/by-uuid/385106b5-71f7-460e-9a2b-2416f3b54cb6"; |   boot.initrd.luks.devices."luks-385106b5-71f7-460e-9a2b-2416f3b54cb6".device = "/dev/disk/by-uuid/385106b5-71f7-460e-9a2b-2416f3b54cb6"; | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   boot.kernelPackages = pkgs.linuxPackages_zen; |   boot.kernelPackages = pkgs.linuxPackages_zen; | ||||||
|  |   boot.consoleLogLevel = 0; | ||||||
|   boot.extraModulePackages = with config.boot.kernelPackages; [ |   boot.extraModulePackages = with config.boot.kernelPackages; [ | ||||||
|     zenpower |     zenpower | ||||||
|   ]; |   ]; | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| { config, pkgs, ... }: | { config, pkgs, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   services.journald.extraConfig = "SystemMaxUse=250M\nSystemMaxFiles=10"; |   services.journald.extraConfig = "SystemMaxUse=50M\nSystemMaxFiles=5"; | ||||||
|   services.journald.rateLimitBurst = 800; |   services.journald.rateLimitBurst = 500; | ||||||
|   services.journald.rateLimitInterval = "5s"; |   services.journald.rateLimitInterval = "30s"; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -4,7 +4,18 @@ let | ||||||
|     (pkgs.retroarch.override { |     (pkgs.retroarch.override { | ||||||
|       cores = with pkgs.libretro; [ |       cores = with pkgs.libretro; [ | ||||||
|         vba-m |         vba-m | ||||||
|         desmume |         (desmume.overrideAttrs (oldAttrs: { | ||||||
|  |           preConfigure = '' | ||||||
|  |             sed -i 's/0009BF123456/0022AA067857/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/outConfig.MACAddress\[0\] = 0x00/outConfig.MACAddress[0] = 0x00/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/outConfig.MACAddress\[1\] = 0x09/outConfig.MACAddress[1] = 0x22/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/outConfig.MACAddress\[2\] = 0xBF/outConfig.MACAddress[2] = 0xAA/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/outConfig.MACAddress\[3\] = 0x12/outConfig.MACAddress[3] = 0x06/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/outConfig.MACAddress\[4\] = 0x34/outConfig.MACAddress[4] = 0x78/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/outConfig.MACAddress\[5\] = 0x56/outConfig.MACAddress[5] = 0x57/g' desmume/src/firmware.cpp; | ||||||
|  |             sed -i 's/0x00, 0x09, 0xBF, 0x12, 0x34, 0x56/0x00, 0x22, 0xAA, 0x06, 0x78, 0x57/g' desmume/src/wifi.cpp; | ||||||
|  |           ''; | ||||||
|  |         })) | ||||||
|         dolphin |         dolphin | ||||||
|         citra |         citra | ||||||
|         genesis-plus-gx |         genesis-plus-gx | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Emmet
						Emmet