| 
									
										
										
										
											2025-01-29 01:49:03 +00:00
										 |  |  | { | 
					
						
							|  |  |  |   config, | 
					
						
							|  |  |  |   lib, | 
					
						
							|  |  |  |   pkgs, | 
					
						
							|  |  |  |   ... | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | with lib; | 
					
						
							| 
									
										
										
										
											2024-12-14 02:24:56 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-29 01:49:03 +00:00
										 |  |  | let | 
					
						
							| 
									
										
										
										
											2025-03-05 15:09:06 +00:00
										 |  |  |   cfg = config.homeManagerModules.notes; | 
					
						
							| 
									
										
										
										
											2025-01-29 01:49:03 +00:00
										 |  |  | in | 
					
						
							| 
									
										
										
										
											2024-12-14 02:24:56 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2025-03-05 15:09:06 +00:00
										 |  |  |   options.homeManagerModules.notes = { | 
					
						
							| 
									
										
										
										
											2025-01-29 01:49:03 +00:00
										 |  |  |     enable = mkEnableOption "Enable notes"; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     directory = mkOption { | 
					
						
							|  |  |  |       type = types.str; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   config = mkIf cfg.enable { | 
					
						
							|  |  |  |     home = { | 
					
						
							|  |  |  |       packages = with pkgs; [ notes ]; | 
					
						
							| 
									
										
										
										
											2024-12-16 17:58:54 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-01-29 01:49:03 +00:00
										 |  |  |       sessionVariables = { | 
					
						
							|  |  |  |         NOTES_DIRECTORY = "${cfg.directory}"; | 
					
						
							|  |  |  |       }; | 
					
						
							| 
									
										
										
										
											2024-12-16 17:58:54 +00:00
										 |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-14 02:24:56 +00:00
										 |  |  | } |