Skip to content

Commit

Permalink
usbip: add target to allow batch restart auto-attach jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Oct 3, 2024
1 parent cf93b39 commit 5d68316
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/usbip.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ in
services.udev.enable = true;

systemd = {
targets.usbip = {
description = "USBIP";
};

services."usbip-auto-attach@" = {
description = "Auto attach device having busid %i with usbip";
after = [ "network.target" ];
partOf = [ "usbip.target" ];

scriptArgs = "%i";
path = with pkgs; [
Expand Down

0 comments on commit 5d68316

Please sign in to comment.