File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 21
21
22
22
snippetIpAddress = lib . mkOption {
23
23
type = lib . types . str ;
24
- default = "$(ip route list | sed -nE 's/(default)? via (.*) dev eth0 proto kernel/ \ 2 /p')" ;
24
+ default = "$(ip route list | sed -nE 's/(default)? via (.*) dev eth0 .*/ \\ 2/p' | head -n1 )" ;
25
25
example = "127.0.0.1" ;
26
26
description = ''
27
27
This snippet is used to obtain the address of the Windows host where Usbipd is running.
38
38
services . udev . enable = true ;
39
39
40
40
systemd = {
41
+ targets . usbip = {
42
+ description = "USBIP" ;
43
+ } ;
44
+
41
45
services . "usbip-auto-attach@" = {
42
46
description = "Auto attach device having busid %i with usbip" ;
43
47
after = [ "network.target" ] ;
48
+ partOf = [ "usbip.target" ] ;
44
49
45
50
scriptArgs = "%i" ;
46
51
path = with pkgs ; [
You can’t perform that action at this time.
0 commit comments