Skip to content

Commit

Permalink
feat: add openiscsi for longhorn support
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Jan 2, 2025
1 parent 0188920 commit a6d81b4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion hosts/patroclus/k3s.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ config, self, ... }:
{
config,
self,
pkgs,
...
}:
{
services.k3s = {
enable = true;
Expand All @@ -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;
Expand Down

0 comments on commit a6d81b4

Please sign in to comment.