[NixOS] Fix k3s definition
This commit is contained in:
parent
f00d9bdb12
commit
eaa46e7034
@ -3,13 +3,15 @@ with lib;
|
|||||||
let cfg = config.myModules.railbird-k3s;
|
let cfg = config.myModules.railbird-k3s;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
myModules.railbird-k3s = {
|
||||||
enable = mkEnableOption "railbird k3s";
|
enable = mkEnableOption "railbird k3s";
|
||||||
serverAddr = {
|
serverAddr = mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "";
|
default = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
age.secrets."1896Folsom-k3s-token.age".file = ./secrets/1896Folsom-k3s-token.age;
|
age.secrets."1896Folsom-k3s-token.age".file = ./secrets/1896Folsom-k3s-token.age;
|
||||||
services.dockerRegistry = {
|
services.dockerRegistry = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
features.full.enable = true;
|
features.full.enable = true;
|
||||||
myModules.kubelet.enable = false;
|
myModules.kubelet.enable = false;
|
||||||
myModules.railbird-k3s.enable = true;
|
|
||||||
myModules.nvidia.enable = true;
|
myModules.nvidia.enable = true;
|
||||||
# Needed for now because monitors have different refresh rates
|
# Needed for now because monitors have different refresh rates
|
||||||
myModules.xmonad.picom.vSync.enable = false;
|
myModules.xmonad.picom.vSync.enable = false;
|
||||||
@ -17,6 +16,7 @@
|
|||||||
};
|
};
|
||||||
myModules.gitea-runner.enable = true;
|
myModules.gitea-runner.enable = true;
|
||||||
myModules.postgres.enable = true;
|
myModules.postgres.enable = true;
|
||||||
|
myModules.railbird-k3s.enable = true;
|
||||||
|
|
||||||
boot.loader.systemd-boot.configurationLimit = 5;
|
boot.loader.systemd-boot.configurationLimit = 5;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user