forked from jan-leila/nix-config
		
	fixed home manager with impermanence
This commit is contained in:
		
							parent
							
								
									22b40edb24
								
							
						
					
					
						commit
						5abc647d98
					
				
					 4 changed files with 22 additions and 36 deletions
				
			
		|  | @ -3,23 +3,19 @@ | ||||||
|   osConfig, |   osConfig, | ||||||
|   ... |   ... | ||||||
| }: { | }: { | ||||||
|   home.persistence."/persist/home/leyla" = lib.mkIf osConfig.host.impermanence.enable { |   config = lib.mkIf osConfig.host.impermanence.enable { | ||||||
|     directories = [ |     home.persistence."/persist/home/leyla" = { | ||||||
|       "desktop" |       directories = [ | ||||||
|       "downloads" |         "desktop" | ||||||
|       "documents" |         "downloads" | ||||||
|       ".ssh" |         "documents" | ||||||
|       ".nixops" |         ".ssh" | ||||||
|       ".local/share/keyrings" |         ".config/gnome-initial-setup-done" | ||||||
|       ".local/share/direnv" |         { | ||||||
|       { |           directory = ".local/share/Steam"; | ||||||
|         directory = ".local/share/Steam"; |           method = "symlink"; | ||||||
|         method = "symlink"; |         } | ||||||
|       } |       ]; | ||||||
|     ]; |     }; | ||||||
|     # files = [ |  | ||||||
|     #   ".screenrc" |  | ||||||
|     # ]; |  | ||||||
|     allowOther = true; |  | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -4,6 +4,5 @@ | ||||||
|     ./flipperzero.nix |     ./flipperzero.nix | ||||||
|     ./i18n.nix |     ./i18n.nix | ||||||
|     ./openssh.nix |     ./openssh.nix | ||||||
|     ./impermanence.nix |  | ||||||
|   ]; |   ]; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -1,17 +0,0 @@ | ||||||
| { |  | ||||||
|   lib, |  | ||||||
|   config, |  | ||||||
|   osConfig, |  | ||||||
|   ... |  | ||||||
| }: { |  | ||||||
|   config = lib.mkIf osConfig.host.impermanence.enable { |  | ||||||
|     home.persistence."/persistent/home/${config.home.username}" = { |  | ||||||
|       directories = [ |  | ||||||
|         ".ssh" |  | ||||||
|         "desktop" |  | ||||||
|         "downloads" |  | ||||||
|         "documents" |  | ||||||
|       ]; |  | ||||||
|     }; |  | ||||||
|   }; |  | ||||||
| } |  | ||||||
|  | @ -277,6 +277,14 @@ in { | ||||||
|           normalUsers) |           normalUsers) | ||||||
|       ); |       ); | ||||||
| 
 | 
 | ||||||
|  |       systemd = { | ||||||
|  |         tmpfiles.rules = | ||||||
|  |           builtins.map ( | ||||||
|  |             user: "d /persist/home/${user.name} 700 ${user.name} ${user.name} -" | ||||||
|  |           ) | ||||||
|  |           normalUsers; | ||||||
|  |       }; | ||||||
|  | 
 | ||||||
|       fileSystems = lib.mkMerge [ |       fileSystems = lib.mkMerge [ | ||||||
|         { |         { | ||||||
|           ${SOPS_AGE_KEY_DIRECTORY}.neededForBoot = true; |           ${SOPS_AGE_KEY_DIRECTORY}.neededForBoot = true; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue