add secret for k3s admin private key
manage kubeconfig with home manager for k8s cluster access
This commit is contained in:
parent
69cbed2ea9
commit
6f64ae8776
4 changed files with 35 additions and 1 deletions
BIN
secrets/k3s-pim-privkey.age
Normal file
BIN
secrets/k3s-pim-privkey.age
Normal file
Binary file not shown.
|
@ -5,7 +5,8 @@ let
|
|||
publicKeysFile = builtins.fetchurl { url = publicKeysURL; };
|
||||
publicKeys = pkgs.lib.strings.splitString "\n"
|
||||
(pkgs.lib.strings.fileContents publicKeysFile);
|
||||
in {
|
||||
in
|
||||
{
|
||||
"wg-quick-home-privkey.age".publicKeys = publicKeys;
|
||||
"wg-quick-home-preshared-key.age".publicKeys = publicKeys;
|
||||
"sue_ed25519.age".publicKeys = publicKeys;
|
||||
|
@ -18,4 +19,5 @@ in {
|
|||
"keepassxc.ini.age".publicKeys =
|
||||
publicKeys; # Secret agent causes private keys in config file.
|
||||
"postgresql_client.key.age".publicKeys = publicKeys;
|
||||
"k3s-pim-privkey.age".publicKeys = publicKeys;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue