Oh dope
This commit is contained in:
		
							parent
							
								
									301af9dc32
								
							
						
					
					
						commit
						9aaea046a2
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -17,11 +17,12 @@
 | 
			
		|||
    KERNEL=="nvme0n1p9|nvme0n1p1[0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block external-drive-mount@%k.service"
 | 
			
		||||
    KERNEL=="nvme0n1p9|nvme0n1p1[0-9]", ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl start --no-block external-drive-unmount@%k.service"
 | 
			
		||||
  '';
 | 
			
		||||
 | 
			
		||||
  systemd.services."external-drive-mount@" = {
 | 
			
		||||
    path = with pkgs; [jq coreutils udisks bash util-linux auto-mount];
 | 
			
		||||
    enable = true;
 | 
			
		||||
    description = "Mount External Drive on %i";
 | 
			
		||||
    script = "auto-mount add";
 | 
			
		||||
    script = "auto-mount add ";
 | 
			
		||||
    scriptArgs = "%i";
 | 
			
		||||
    serviceConfig = {
 | 
			
		||||
      Type = "oneshot";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue