refactor: inputs/ --> {sys,home}/
This commit is contained in:
		
							parent
							
								
									8f22a24963
								
							
						
					
					
						commit
						f77c627980
					
				
					 225 changed files with 77 additions and 88 deletions
				
			
		
							
								
								
									
										18
									
								
								home/modules/desktop/productivity/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								home/modules/desktop/productivity/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| { lib, ... }: | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     ./obsidian | ||||
|     ./zathura | ||||
|     ./office | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.productivity = { | ||||
|     obsidian = { | ||||
|       enable = lib.mkEnableOption "enable obsidian home module"; | ||||
|     }; | ||||
|     zathura = { | ||||
|       enable = lib.mkEnableOption "enable zathura home module"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										11
									
								
								home/modules/desktop/productivity/obsidian/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								home/modules/desktop/productivity/obsidian/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.productivity.obsidian; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     home.packages = with pkgs; [ obsidian ]; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										13
									
								
								home/modules/desktop/productivity/office/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								home/modules/desktop/productivity/office/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   inherit (lib) mkIf mkEnableOption; | ||||
|   cfg = config.homeModules.desktop.productivity.office; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   options.homeModules.desktop.productivity.office.enable = mkEnableOption "enable office home module"; | ||||
|   config = mkIf cfg.enable { | ||||
|     home.packages = [ pkgs.libreoffice ]; | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										40
									
								
								home/modules/desktop/productivity/zathura/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								home/modules/desktop/productivity/zathura/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.productivity.zathura; | ||||
|   inherit (config.colorscheme) palette; | ||||
|   fonts = config.homeModules.theme.fonts; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     programs.zathura = { | ||||
|       enable = true; | ||||
|       options = { | ||||
|         font = "${fonts.regular.family} 14"; | ||||
|         recolor = true; | ||||
|         selection-clipboard = "clipboard"; | ||||
|         default-bg = "#${palette.base00}"; | ||||
|         default-fg = "#${palette.base01}"; | ||||
|         statusbar-bg = "#${palette.base02}"; | ||||
|         statusbar-fg = "#${palette.base04}"; | ||||
|         inputbar-bg = "#${palette.base00}"; | ||||
|         inputbar-fg = "#${palette.base07}"; | ||||
|         notification-bg = "#${palette.base00}"; | ||||
|         notification-fg = "#${palette.base07}"; | ||||
|         notification-error-bg = "#${palette.base00}"; | ||||
|         notification-error-fg = "#${palette.base08}"; | ||||
|         notification-warning-bg = "#${palette.base00}"; | ||||
|         notification-warning-fg = "#${palette.base08}"; | ||||
|         highlight-color = "#${palette.base0A}"; | ||||
|         highlight-active-color = "#${palette.base0D}"; | ||||
|         completion-bg = "#${palette.base01}"; | ||||
|         completion-fg = "#${palette.base05}"; | ||||
|         completions-highlight-bg = "#${palette.base0D}"; | ||||
|         completions-highlight-fg = "#${palette.base07}"; | ||||
|         recolor-lightcolor = "#${palette.base00}"; | ||||
|         recolor-darkcolor = "#${palette.base06}"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue