mirror of
				https://github.com/Jokiller230/puzzlevision.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	feat(modules/nixos): deactivate Wi-Fi powersave
feat(modules/home): add default user icon
This commit is contained in:
		
							parent
							
								
									e6e85a9310
								
							
						
					
					
						commit
						be96d3962f
					
				
					 2 changed files with 9 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,16 +1,21 @@
 | 
			
		|||
{
 | 
			
		||||
  lib,
 | 
			
		||||
  namespace,
 | 
			
		||||
 | 
			
		||||
  config,
 | 
			
		||||
  ...
 | 
			
		||||
}: with lib; with lib.${namespace};
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkIf mkEnableOption;
 | 
			
		||||
  cfg = config.${namespace}.common.networking;
 | 
			
		||||
in {
 | 
			
		||||
  options.${namespace}.common.networking = { enable = mkEnableOption "networking"; };
 | 
			
		||||
  options.${namespace}.common.networking = {
 | 
			
		||||
    enable = mkEnableOption "Whether to enable networking through NetworkManager.";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf cfg.enable {
 | 
			
		||||
    networking.networkmanager.enable = true;
 | 
			
		||||
    networking.networkmanager = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      wifi.powersave = false;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue