nixos: initial bitmap font support
This commit is contained in:
		
							parent
							
								
									3cb560dfe1
								
							
						
					
					
						commit
						3f11846977
					
				
					 10 changed files with 118 additions and 22 deletions
				
			
		|  | @ -1,6 +1,6 @@ | |||
| {lib, ...}: let | ||||
|   inherit (lib) mkOption; | ||||
|   inherit (lib.types) str package path int; | ||||
|   inherit (lib.types) str package path int bool; | ||||
| 
 | ||||
|   mkFontOption = { | ||||
|     family = mkOption { | ||||
|  | @ -11,6 +11,28 @@ | |||
|       type = package; | ||||
|       default = null; | ||||
|     }; | ||||
|     size = mkOption { | ||||
|       type = int; | ||||
|       default = 18; | ||||
|     }; | ||||
|     bitmap = mkOption { | ||||
|       type = bool; | ||||
|       default = false; | ||||
|     }; | ||||
|     fallback = { | ||||
|       family = mkOption { | ||||
|         type = str; | ||||
|         default = ""; | ||||
|       }; | ||||
|       package = mkOption { | ||||
|         type = package; | ||||
|         default = null; | ||||
|       }; | ||||
|       size = mkOption { | ||||
|         type = int; | ||||
|         default = null; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| in { | ||||
|   #  imports = [./palettes]; | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
| in { | ||||
|   options.ooknet.workstation = { | ||||
|     theme = mkOption { | ||||
|       type = nullOr (enum ["minimal"]); | ||||
|       type = nullOr (enum ["minimal" "hozen"]); | ||||
|       default = null; | ||||
|     }; | ||||
|     profiles = mkOption { | ||||
|  |  | |||
|  | @ -1,5 +1,6 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./minimal.nix | ||||
|     ./hozen.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										42
									
								
								modules/nixos/workstation/themes/hozen.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								modules/nixos/workstation/themes/hozen.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,42 @@ | |||
| { | ||||
|   config, | ||||
|   lib, | ||||
|   pkgs, | ||||
|   hozen, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (lib) mkIf; | ||||
|   inherit (config.ooknet.workstation) theme; | ||||
|   generatedWallpaper = import ./generated-wallpaper.nix {inherit hozen config pkgs;} {}; | ||||
| in { | ||||
|   config = mkIf (theme == "hozen") { | ||||
|     ooknet.appearance = { | ||||
|       fonts = { | ||||
|         monospace = { | ||||
|           family = "CozetteHiDpi"; | ||||
|           package = pkgs.cozette; | ||||
|           size = 22; | ||||
|           fallback = { | ||||
|             family = "JetBrainsMono Nerd Font"; | ||||
|             package = pkgs.nerfonts.override {fonts = ["JetBrainsMono"];}; | ||||
|             size = 18; | ||||
|           }; | ||||
|         }; | ||||
|         regular = { | ||||
|           family = "Fira Sans"; | ||||
|           package = pkgs.fira; | ||||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       cursor = { | ||||
|         name = "Bibata-Modern-Ice"; | ||||
|         package = pkgs.bibata-cursors; | ||||
|         size = 22; | ||||
|       }; | ||||
| 
 | ||||
|       wallpaper = { | ||||
|         path = "${generatedWallpaper}"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue