refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
		
							parent
							
								
									8f67be9e68
								
							
						
					
					
						commit
						5603001d65
					
				
					 230 changed files with 380 additions and 717 deletions
				
			
		|  | @ -1,34 +0,0 @@ | |||
| { config, lib, inputs, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.launcher.anyrun; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     inputs.anyrun.homeManagerModules.default | ||||
|   ]; | ||||
|    | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     programs.anyrun = { | ||||
|       enable = true; | ||||
|       config = { | ||||
|         plugins = with inputs.anyrun.packages.${pkgs.system}; [ | ||||
|           applications | ||||
|           randr | ||||
|           shell | ||||
|           rink | ||||
|           symbols | ||||
|         ]; | ||||
|       }; | ||||
|       extraCss = /* css */ '' | ||||
| 
 | ||||
|         * { | ||||
|           font-family: JetBrains Mono Nerd Font; | ||||
|         } | ||||
|          | ||||
|       ''; | ||||
|     }; | ||||
|   }; | ||||
|    | ||||
| } | ||||
|  | @ -1,21 +0,0 @@ | |||
| { lib, ... }: | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     ./anyrun | ||||
|     ./rofi | ||||
|     ./tofi | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.wayland.launcher = { | ||||
|     anyrun = { | ||||
|       enable = lib.mkEnableOption "enable anyrun launcher module"; | ||||
|     }; | ||||
|     rofi = { | ||||
|       enable = lib.mkEnableOption "enable rofi launcher module"; | ||||
|     }; | ||||
|     tofi = { | ||||
|       enable = lib.mkEnableOption "enable tofi launcher module"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -1,80 +0,0 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   fonts = config.homeModules.theme.fonts; | ||||
|   cfg = config.homeModules.desktop.wayland.launcher.rofi; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     programs.rofi = { | ||||
|       enable = true; | ||||
|       font = "${fonts.monospace.family}"; | ||||
|       package = pkgs.rofi-wayland; | ||||
|       terminal = "${config.home.sessionVariables.TERMINAL}"; | ||||
|       theme = let | ||||
|         inherit (config.colorscheme ) colors; | ||||
|         inherit (config.lib.formats.rasi) mkLiteral; | ||||
|       in { | ||||
|         "*" = { | ||||
|           background = mkLiteral "#${colors.base00}"; | ||||
|           foreground = mkLiteral "#${colors.base05}"; | ||||
|           selected = mkLiteral "#${colors.base0B}"; | ||||
|           message = mkLiteral "#${colors.base0D}"; | ||||
| 
 | ||||
|           background-color = mkLiteral "@background"; | ||||
|           border-color = mkLiteral "@foreground"; | ||||
|           text-color = mkLiteral "@foreground"; | ||||
|           font = mkLiteral "'${fonts.monospace.family} 14'"; | ||||
|         }; | ||||
| 
 | ||||
|         "window" = { | ||||
|           width = mkLiteral "15%"; | ||||
|           border = mkLiteral "2"; | ||||
|           padding = mkLiteral "10"; | ||||
|           children = mkLiteral "[message,listview,inputbar]"; | ||||
|         }; | ||||
| 
 | ||||
|         "message" = { | ||||
|           children = mkLiteral "[textbox]"; | ||||
|         }; | ||||
| 
 | ||||
|         "textbox" = { | ||||
|           text-color = mkLiteral "@message"; | ||||
|           horizontal-align = mkLiteral "0.50"; | ||||
|         }; | ||||
| 
 | ||||
|         "inputbar" = { | ||||
|           cursor = mkLiteral "pointer"; | ||||
|           border = mkLiteral "2"; | ||||
|           children = mkLiteral "[textbox-prompt-colon,entry]"; | ||||
|         }; | ||||
| 
 | ||||
|         "entry" = { | ||||
|           cursor = mkLiteral "false"; | ||||
|         }; | ||||
| 
 | ||||
|         "textbox-prompt-colon" = { | ||||
|           text-color = mkLiteral "@selected"; | ||||
|           expand = mkLiteral "false"; | ||||
|           margin = mkLiteral "0 0.3em 0em 0em"; | ||||
|           str = mkLiteral "'  '"; | ||||
|         }; | ||||
| 
 | ||||
|         "listview" = { | ||||
|           scrollbar = mkLiteral "true"; | ||||
|           fixed-height = mkLiteral "false"; | ||||
|           dynamic = mkLiteral "true"; | ||||
|         }; | ||||
| 
 | ||||
|         "element-text" = { | ||||
|           horizontal-align = mkLiteral "0.50"; | ||||
|         }; | ||||
| 
 | ||||
|         "element-text selected" = { | ||||
|           text-color = mkLiteral "@selected"; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  | @ -1,42 +0,0 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.launcher.tofi; | ||||
|   fonts = config.homeModules.theme.fonts; | ||||
|   inherit (config.colorscheme) colors; | ||||
| in | ||||
| 
 | ||||
| { | ||||
| 
 | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     home.packages = [pkgs.tofi]; | ||||
|     xdg.configFile."tofi/config".text = /* config */ '' | ||||
|       history = false | ||||
|       clip-to-padding = false | ||||
|       horizontal = true | ||||
|       width = 40% | ||||
|       height = 35 | ||||
|       anchor = top-left | ||||
|       margin-top = 5 | ||||
|       margin-left = 25% | ||||
|       num-results = 1 | ||||
|       border-width = 0 | ||||
|       outline-width = 0 | ||||
|       result-spacing = 10 | ||||
|       selection-background-padding = 30 | ||||
|       prompt-padding = 10 | ||||
|       font = "${fonts.monospace.family}" | ||||
|       font-size = 14 | ||||
|       prompt-text = "  " | ||||
|       background-color = #0000 | ||||
|       prompt-background = #0000 | ||||
|       prompt-color = ${colors.base0B} | ||||
|       input-color = ${colors.base05} | ||||
|       placeholder-color = ${colors.base03} | ||||
|       default-result-color = ${colors.base03} | ||||
|       selection-color = ${colors.base04} | ||||
|     ''; | ||||
|   }; | ||||
|    | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue