mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
feat: longhorn & iscsi
This commit is contained in:
@@ -47,6 +47,17 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Workaround for longhorn running on NixOS
|
||||||
|
# https://github.com/longhorn/longhorn/issues/2166
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"L+ /usr/local/bin - - - - /run/current-system/sw/bin/"
|
||||||
|
];
|
||||||
|
# Longhorn uses open-iscsi to create block devices.
|
||||||
|
services.openiscsi = {
|
||||||
|
name = "iqn.2020-08.org.linux-iscsi.initiatorhost:${hostName}";
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
inherit hostName;
|
inherit hostName;
|
||||||
inherit (networking) defaultGateway nameservers;
|
inherit (networking) defaultGateway nameservers;
|
||||||
|
|||||||
Reference in New Issue
Block a user