[NixOS] Try to add a taint to ryzen-shine k3s

This commit is contained in:
2024-10-09 11:32:35 -06:00
parent 1d31f870c5
commit 57e13b8319
2 changed files with 9 additions and 2 deletions

View File

@@ -16,6 +16,10 @@ in {
type = lib.types.str;
default = "";
};
extraFlags = mkOption {
type = lib.types.listOf lib.types.str;
default = [];
};
};
};
config = mkIf cfg.enable {
@@ -72,7 +76,7 @@ in {
"--tls-san jimi-hendnix.local"
"--tls-san dev.railbird.ai"
"--node-label nixos-nvidia-cdi=enabled"
];
] ++ cfg.extraFlags;
containerdConfigTemplate = ''
{{ template "base" . }}

View File

@@ -16,7 +16,10 @@
};
myModules.gitea-runner.enable = true;
myModules.postgres.enable = true;
myModules.railbird-k3s.enable = true;
myModules.railbird-k3s = {
enable = true;
extraFlags = ["--node-taint preferNoSchedule=true:NoSchedule"];
};
boot.loader.systemd-boot.configurationLimit = 5;