Do not install kubernetes clients on neelix.

This commit is contained in:
Tom Alexander 2025-01-23 20:35:28 -05:00
parent e3fee206a1
commit d8e16f0b05
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 40 additions and 24 deletions

View File

@ -40,5 +40,7 @@
me.git.config = ./roles/git/files/gitconfig_home; me.git.config = ./roles/git/files/gitconfig_home;
me.graphical = true; me.graphical = true;
me.graphics_card_type = "amd"; me.graphics_card_type = "amd";
me.kanshi.enable = true;
me.kubernetes.enable = true;
me.sway.enable = true; me.sway.enable = true;
} }

View File

@ -32,31 +32,45 @@ in
{ {
imports = [ ]; imports = [ ];
environment.systemPackages = with pkgs; [ options.me = {
kubectl kubernetes.enable = lib.mkOption {
kubeswitch type = lib.types.bool;
stern default = false;
alias_kx example = true;
alias_ks description = "Whether we want to install kubernetes.";
alias_k
alias_ka
alias_kdel
alias_kd
alias_klog
];
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".kube";
user = "talexander";
group = "talexander";
mode = "0750";
}
];
}; };
}; };
config = lib.mkIf config.me.kubernetes.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
kubectl
kubeswitch
stern
alias_kx
alias_ks
alias_k
alias_ka
alias_kdel
alias_kd
alias_klog
];
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".kube";
user = "talexander";
group = "talexander";
mode = "0750";
}
];
};
};
}
]
);
} }