forked from jan-leila/nix-config
		
	made impermanence config work slightly better
This commit is contained in:
		
							parent
							
								
									2d5e37b1eb
								
							
						
					
					
						commit
						48dc0b1150
					
				
					 8 changed files with 66 additions and 25 deletions
				
			
		|  | @ -1,13 +1,28 @@ | |||
| {...}: { | ||||
|   services = { | ||||
|     openssh = { | ||||
|       enable = true; | ||||
|       ports = [22]; | ||||
|       settings = { | ||||
|         PasswordAuthentication = false; | ||||
|         UseDns = true; | ||||
|         X11Forwarding = false; | ||||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: { | ||||
|   config = lib.mkMerge [ | ||||
|     { | ||||
|       services = { | ||||
|         openssh = { | ||||
|           enable = true; | ||||
|           ports = [22]; | ||||
|           settings = { | ||||
|             PasswordAuthentication = false; | ||||
|             UseDns = true; | ||||
|             X11Forwarding = false; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|     } | ||||
|     (lib.mkIf config.host.impermanence.enable { | ||||
|       environment.persistence."/persist/system/root" = { | ||||
|         directories = [ | ||||
|           "/etc/ssh" | ||||
|         ]; | ||||
|       }; | ||||
|     }) | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue