Commit cb74137 1 parent d94f482 commit cb74137 Copy full SHA for cb74137
File tree 7 files changed +48
-0
lines changed
7 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 15
15
( mylib . scanPaths ./. )
16
16
++ [
17
17
coreModule
18
+ {
19
+ # Longhorn uses open-iscsi to create block devices.
20
+ services . openiscsi = {
21
+ name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${ hostName } " ;
22
+ enable = true ;
23
+ } ;
24
+ }
18
25
] ;
19
26
}
Original file line number Diff line number Diff line change 15
15
( mylib . scanPaths ./. )
16
16
++ [
17
17
coreModule
18
+ {
19
+ # Longhorn uses open-iscsi to create block devices.
20
+ services . openiscsi = {
21
+ name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${ hostName } " ;
22
+ enable = true ;
23
+ } ;
24
+ }
18
25
] ;
19
26
}
Original file line number Diff line number Diff line change 15
15
( mylib . scanPaths ./. )
16
16
++ [
17
17
coreModule
18
+ {
19
+ # Longhorn uses open-iscsi to create block devices.
20
+ services . openiscsi = {
21
+ name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${ hostName } " ;
22
+ enable = true ;
23
+ } ;
24
+ }
18
25
] ;
19
26
}
Original file line number Diff line number Diff line change 15
15
( mylib . scanPaths ./. )
16
16
++ [
17
17
coreModule
18
+ {
19
+ # Longhorn uses open-iscsi to create block devices.
20
+ services . openiscsi = {
21
+ name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${ hostName } " ;
22
+ enable = true ;
23
+ } ;
24
+ }
18
25
] ;
19
26
}
Original file line number Diff line number Diff line change 15
15
( mylib . scanPaths ./. )
16
16
++ [
17
17
coreModule
18
+ {
19
+ # Longhorn uses open-iscsi to create block devices.
20
+ services . openiscsi = {
21
+ name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${ hostName } " ;
22
+ enable = true ;
23
+ } ;
24
+ }
18
25
] ;
19
26
}
Original file line number Diff line number Diff line change 15
15
( mylib . scanPaths ./. )
16
16
++ [
17
17
coreModule
18
+ {
19
+ # Longhorn uses open-iscsi to create block devices.
20
+ services . openiscsi = {
21
+ name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${ hostName } " ;
22
+ enable = true ;
23
+ } ;
24
+ }
18
25
] ;
19
26
}
Original file line number Diff line number Diff line change 47
47
} ;
48
48
} ;
49
49
50
+ # Workaround for longhorn running on NixOS
51
+ # https://github.com/longhorn/longhorn/issues/2166
52
+ systemd . tmpfiles . rules = [
53
+ "L+ /usr/local/bin - - - - /run/current-system/sw/bin/"
54
+ ] ;
55
+
50
56
networking = {
51
57
inherit hostName ;
52
58
inherit ( networking ) defaultGateway nameservers ;
You can’t perform that action at this time.
0 commit comments