Maybe get the name right....
This commit is contained in:
		
							parent
							
								
									adbd60c266
								
							
						
					
					
						commit
						3524b157f6
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -15,14 +15,14 @@
 | 
			
		|||
    KERNEL=="nvme0n1p9|nvme0n1p1[0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block external-drive-mount@%k.service"
 | 
			
		||||
  '';
 | 
			
		||||
  systemd.services."external-drive-mount@" = {
 | 
			
		||||
    path = with pkgs; [jq coreutils udisks bash];
 | 
			
		||||
    path = with pkgs; [jq coreutils udisks bash auto-mount];
 | 
			
		||||
    enable = true;
 | 
			
		||||
    description = "Mount External Drive on %i";
 | 
			
		||||
    serviceConfig = {
 | 
			
		||||
      Type = "oneshot";
 | 
			
		||||
      RemainAfterExit = true;
 | 
			
		||||
      ExecStart = "automount add %i";
 | 
			
		||||
      ExecStop = "automount remove %i";
 | 
			
		||||
      ExecStart = "auto-mount add %i";
 | 
			
		||||
      ExecStop = "auto-mount remove %i";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue