Skip to content

Commit ec9a1aa

Browse files
committed
usbip: add target to allow batch restart auto-attach jobs
1 parent 143ebd2 commit ec9a1aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/usbip.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ in
3838
services.udev.enable = true;
3939

4040
systemd = {
41+
targets.usbip = {
42+
description = "USBIP";
43+
};
44+
4145
services."usbip-auto-attach@" = {
4246
description = "Auto attach device having busid %i with usbip";
4347
after = [ "network.target" ];
48+
partOf = [ "usbip.target" ];
4449

4550
scriptArgs = "%i";
4651
path = with pkgs; [

0 commit comments

Comments
 (0)