nixos/fontdir: add group of options for fontDir
Renaming enableFontDir to fontDir.enable
This commit is contained in:
		
							parent
							
								
									eda7e23ea4
								
							
						
					
					
						commit
						c99bd9bedf
					
				@ -20,10 +20,9 @@ in
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  options = {
 | 
			
		||||
    fonts.fontDir = {
 | 
			
		||||
 | 
			
		||||
    fonts = {
 | 
			
		||||
 | 
			
		||||
      enableFontDir = mkOption {
 | 
			
		||||
      enable = mkOption {
 | 
			
		||||
        type = types.bool;
 | 
			
		||||
        default = false;
 | 
			
		||||
        description = ''
 | 
			
		||||
@ -32,11 +31,11 @@ in
 | 
			
		||||
        '';
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = mkIf config.fonts.enableFontDir {
 | 
			
		||||
  config = mkIf config.fonts.fontDir.enable {
 | 
			
		||||
 | 
			
		||||
    # This is enough to make a symlink because the xserver
 | 
			
		||||
    # module already links all /share/X11 paths.
 | 
			
		||||
@ -48,4 +47,8 @@ in
 | 
			
		||||
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  imports = [
 | 
			
		||||
    (mkRenamedOptionModule [ "fonts" "enableFontDir" ] [ "fonts" "fontDir" "enable" ])
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user