mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-11-04 03:26:57 +01:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
	
		
			346 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
	
		
			346 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| 
								 | 
							
								{ config, lib, pkgs, ... }:
							 | 
						||
| 
								 | 
							
								let
							 | 
						||
| 
								 | 
							
								  cfg = config.my.profiles.update;
							 | 
						||
| 
								 | 
							
								in
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  options.my.profiles.update = with lib; {
							 | 
						||
| 
								 | 
							
								    enable = mkEnableOption "update profile";
							 | 
						||
| 
								 | 
							
								  };
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  config = lib.mkIf cfg.enable {
							 | 
						||
| 
								 | 
							
								    # Enable firmware update daemon
							 | 
						||
| 
								 | 
							
								    services.fwupd.enable = true;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    environment.systemPackages = with pkgs; [
							 | 
						||
| 
								 | 
							
								      topgrade
							 | 
						||
| 
								 | 
							
								    ];
							 | 
						||
| 
								 | 
							
								  };
							 | 
						||
| 
								 | 
							
								}
							 |