Skip to content

Commit 4b918e5

Browse files
authored
Merge pull request #101 from ryan4yin/k3s-kubevirt
feat: longhorn & iscsi
2 parents d94f482 + a697ebe commit 4b918e5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hosts/k8s/lib.nix

+11
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@
4747
};
4848
};
4949

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+
# Longhorn uses open-iscsi to create block devices.
56+
services.openiscsi = {
57+
name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${hostName}";
58+
enable = true;
59+
};
60+
5061
networking = {
5162
inherit hostName;
5263
inherit (networking) defaultGateway nameservers;

0 commit comments

Comments
 (0)