forked from jan-leila/nix-config
		
	feat: refactored impermanence to be enableable for users on a system
This commit is contained in:
		
							parent
							
								
									337f03b4e7
								
							
						
					
					
						commit
						6d5a07e08f
					
				
					 31 changed files with 61 additions and 56 deletions
				
			
		|  | @ -1,12 +1,11 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: { | ||||
|   config = lib.mkIf config.programs.obsidian.enable (lib.mkMerge [ | ||||
|     ( | ||||
|       lib.mkIf osConfig.host.impermanence.enable { | ||||
|       lib.mkIf config.impermanence.enable { | ||||
|         home.persistence."/persist${config.home.homeDirectory}" = { | ||||
|           directories = [ | ||||
|             "${config.xdg.configHome}/obsidian" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue