Add some laptop settings
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Run nix flake check / flake-check (push) Successful in 1m48s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Run nix flake check / flake-check (push) Successful in 1m48s
				
			This commit is contained in:
		| @@ -1,6 +1,4 @@ | |||||||
| { | { | ||||||
|   config, |  | ||||||
|   lib, |  | ||||||
|   pkgs, |   pkgs, | ||||||
|   ... |   ... | ||||||
| }: | }: | ||||||
| @@ -24,6 +22,7 @@ | |||||||
|     enable = true; |     enable = true; | ||||||
|     configurationLimit = 3; |     configurationLimit = 3; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   boot.loader.efi = { |   boot.loader.efi = { | ||||||
|     canTouchEfiVariables = true; |     canTouchEfiVariables = true; | ||||||
|   }; |   }; | ||||||
| @@ -91,12 +90,6 @@ | |||||||
|   # TRIM |   # TRIM | ||||||
|   services.fstrim.enable = true; |   services.fstrim.enable = true; | ||||||
|  |  | ||||||
|   # TLP |  | ||||||
|   services.tlp.enable = true; |  | ||||||
|  |  | ||||||
|   # Brillo |  | ||||||
|   hardware.brillo.enable = true; |  | ||||||
|  |  | ||||||
|   # Setup common XDG env vars |   # Setup common XDG env vars | ||||||
|   environment.sessionVariables = rec { |   environment.sessionVariables = rec { | ||||||
|     XDG_CACHE_HOME = "$HOME/.cache"; |     XDG_CACHE_HOME = "$HOME/.cache"; | ||||||
|   | |||||||
| @@ -8,6 +8,7 @@ | |||||||
|   imports = [ |   imports = [ | ||||||
|     ./configuration.nix |     ./configuration.nix | ||||||
|     ./hardware-configuration.nix |     ./hardware-configuration.nix | ||||||
|  |     ./laptop.nix | ||||||
|     ../../system |     ../../system | ||||||
|     ../../home/magicman.nix |     ../../home/magicman.nix | ||||||
|   ]; |   ]; | ||||||
|   | |||||||
							
								
								
									
										22
									
								
								hosts/magicman/laptop.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								hosts/magicman/laptop.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | |||||||
|  | { ... }: | ||||||
|  | { | ||||||
|  |   hardware.brillo.enable = true; | ||||||
|  |   powerManagement.enable = true; | ||||||
|  |  | ||||||
|  |   services.tlp.enable = true; | ||||||
|  |   services.thermald.enable = true; | ||||||
|  |  | ||||||
|  |   services.auto-cpufreq = { | ||||||
|  |     enable = true; | ||||||
|  |     settings = { | ||||||
|  |       battery = { | ||||||
|  |         governor = "powersave"; | ||||||
|  |         turbo = "never"; | ||||||
|  |       }; | ||||||
|  |       charger = { | ||||||
|  |         governor = "performance"; | ||||||
|  |         turbo = "auto"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user