treewide: cleanup config with enable options
This commit is contained in:
		
							parent
							
								
									d469c5fa79
								
							
						
					
					
						commit
						0a387960a2
					
				
					 28 changed files with 420 additions and 358 deletions
				
			
		| 
						 | 
				
			
			@ -6,9 +6,12 @@
 | 
			
		|||
}:
 | 
			
		||||
let
 | 
			
		||||
  inherit (config.my) accent editor desktop;
 | 
			
		||||
  cfg = config.my.fish;
 | 
			
		||||
in
 | 
			
		||||
{
 | 
			
		||||
  config = {
 | 
			
		||||
  options.my.fish.enable = lib.mkEnableOption { };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    programs.fish = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      shellInit = ''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue