Do not install kubernetes clients on neelix.
This commit is contained in:
parent
e3fee206a1
commit
d8e16f0b05
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user