feat: centralize longhorn config

This commit is contained in:
2025-05-21 10:22:38 -04:00
parent dbc1501546
commit d65a1043c9
3 changed files with 11 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
{
pkgs,
config,
meta,
...
@@ -14,4 +15,14 @@
else "https://${meta.server-addr}:6443";
extraFlags = ["--disable=servicelb" "--disable=traefik" "--node-ip ${meta.zt-ip}" "--flannel-iface ztxh6lvd6t" "--flannel-backend=host-gw" "--tls-san ${meta.zt-ip}"];
};
# For longhorn
environment.systemPackages = [ pkgs.nfs-utils ];
services.openiscsi = {
enable = true;
name = "iqn.2016-04.com.open-iscsi:${config.networking.hostName}";
};
systemd.tmpfiles.rules = [
"L+ /usr/local/bin - - - - /run/current-system/sw/bin/"
];
}

View File

@@ -35,7 +35,6 @@
jq
ripgrep
fd
nfs-utils
];
networking = {
@@ -65,14 +64,5 @@
};
};
# For longhorn
services.openiscsi = {
enable = true;
name = "iqn.2016-04.com.open-iscsi:${config.networking.hostName}";
};
systemd.tmpfiles.rules = [
"L+ /usr/local/bin - - - - /run/current-system/sw/bin/"
];
system.stateVersion = "24.11";
}

View File

@@ -21,15 +21,6 @@
services.openssh.enable = true;
services.qemuGuest.enable = true;
# For longhorn
services.openiscsi = {
enable = true;
name = "iqn.2016-04.com.open-iscsi:${meta.hostname}";
};
systemd.tmpfiles.rules = [
"L+ /usr/local/bin - - - - /run/current-system/sw/bin/"
];
environment.systemPackages = with pkgs; [
git
neovim
@@ -37,7 +28,6 @@
jq
ripgrep
fd
nfs-utils
];
networking = {