Remove duplicate password field
This commit is contained in:
		
							parent
							
								
									389b051a7a
								
							
						
					
					
						commit
						0a0f1377a1
					
				
					 1 changed files with 9 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,12 @@
 | 
			
		|||
  ...
 | 
			
		||||
}:
 | 
			
		||||
let
 | 
			
		||||
  inherit (lib) mkIf mkEnableOption mkOption types;
 | 
			
		||||
  inherit (lib)
 | 
			
		||||
    mkIf
 | 
			
		||||
    mkEnableOption
 | 
			
		||||
    mkOption
 | 
			
		||||
    types
 | 
			
		||||
    ;
 | 
			
		||||
 | 
			
		||||
  cfg = config.${namespace}.programs.hyprlock;
 | 
			
		||||
in
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +29,7 @@ in
 | 
			
		|||
 | 
			
		||||
    settings = mkOption {
 | 
			
		||||
      type = types.attrs;
 | 
			
		||||
      default = {};
 | 
			
		||||
      default = { };
 | 
			
		||||
      description = ''
 | 
			
		||||
        Additional hyprlock configuration settings
 | 
			
		||||
      '';
 | 
			
		||||
| 
						 | 
				
			
			@ -35,7 +40,7 @@ in
 | 
			
		|||
    home.packages = [ pkgs.hyprlock ];
 | 
			
		||||
 | 
			
		||||
    catppuccin.hyprlock.enable = true;
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    programs.hyprlock = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      settings = lib.mkMerge [
 | 
			
		||||
| 
						 | 
				
			
			@ -75,27 +80,6 @@ in
 | 
			
		|||
            }
 | 
			
		||||
          ];
 | 
			
		||||
 | 
			
		||||
          # Input field for password
 | 
			
		||||
          input-field = [
 | 
			
		||||
            {
 | 
			
		||||
              monitor = "";
 | 
			
		||||
              size = "300, 50";
 | 
			
		||||
              outline_thickness = 2;
 | 
			
		||||
              dots_size = 0.2;
 | 
			
		||||
              dots_spacing = 0.2;
 | 
			
		||||
              dots_center = true;
 | 
			
		||||
              outer_color = "$lavender";
 | 
			
		||||
              inner_color = "$surface0";
 | 
			
		||||
              font_color = "$text";
 | 
			
		||||
              fade_on_empty = false;
 | 
			
		||||
              placeholder_text = "<span foreground=\"##$textAlpha\">Password...</span>";
 | 
			
		||||
              hide_input = false;
 | 
			
		||||
              position = "0, -120";
 | 
			
		||||
              halign = "center";
 | 
			
		||||
              valign = "center";
 | 
			
		||||
            }
 | 
			
		||||
          ];
 | 
			
		||||
 | 
			
		||||
          # Time label
 | 
			
		||||
          label = [
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			@ -125,4 +109,4 @@ in
 | 
			
		|||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue