From a6d81b4037086fa2106154ae1957cf09bda9fe8a Mon Sep 17 00:00:00 2001 From: Alex Jackson Date: Thu, 2 Jan 2025 17:11:49 -0600 Subject: [PATCH] feat: add openiscsi for longhorn support --- hosts/patroclus/k3s.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/hosts/patroclus/k3s.nix b/hosts/patroclus/k3s.nix index 143af9b..cbed5c1 100644 --- a/hosts/patroclus/k3s.nix +++ b/hosts/patroclus/k3s.nix @@ -1,4 +1,9 @@ -{ config, self, ... }: +{ + config, + self, + pkgs, + ... +}: { services.k3s = { enable = true; @@ -10,6 +15,16 @@ "--disable traefik" ]; }; + + environment.systemPackages = [ + pkgs.kubectl + pkgs.nfs-utils + ]; + services.openiscsi = { + enable = true; + name = "${config.networking.hostName}-initiatorhost"; + }; + users = { users.k3s = { isSystemUser = true;