mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
35 lines
782 B
Nix
35 lines
782 B
Nix
{
|
|
programs.kubeswitch = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
kind = "SwitchConfig";
|
|
version = "v1alpha1";
|
|
kubeconfigName = "*.myconfig";
|
|
kubeconfigStores = [
|
|
{
|
|
kind = "filesystem";
|
|
kubeconfigName = "*.myconfig";
|
|
paths = [
|
|
"~/.kube/my-other-kubeconfigs/"
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.kube/switch-config.yaml \
|
|
${builtins.toFile "example-settings-expected.yaml" ''
|
|
kind: SwitchConfig
|
|
kubeconfigName: '*.myconfig'
|
|
kubeconfigStores:
|
|
- kind: filesystem
|
|
kubeconfigName: '*.myconfig'
|
|
paths:
|
|
- ~/.kube/my-other-kubeconfigs/
|
|
version: v1alpha1
|
|
''}
|
|
'';
|
|
}
|