mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: add govc qol env
This commit is contained in:
parent
9034735f84
commit
e7e59715d8
3 changed files with 76 additions and 22 deletions
|
|
@ -24,16 +24,31 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
sops = {
|
||||
secrets = {
|
||||
vcuser = {
|
||||
inherit owner sopsFile;
|
||||
};
|
||||
vcpw = {
|
||||
inherit owner sopsFile;
|
||||
};
|
||||
sops =
|
||||
let
|
||||
secretNames = [
|
||||
"vcuser"
|
||||
"vcpw"
|
||||
"govcuser"
|
||||
"govcpw"
|
||||
"govcurl"
|
||||
"govcdc"
|
||||
"govcds"
|
||||
"govchost"
|
||||
"govcnetwork"
|
||||
"govcpool"
|
||||
];
|
||||
in
|
||||
{
|
||||
secrets = builtins.listToAttrs (
|
||||
map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = { inherit owner sopsFile; };
|
||||
})
|
||||
secretNames
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd = {
|
||||
systemd.enable = lib.mkForce true; # make sure we are using initrd systemd even when not using Impermanence
|
||||
|
|
@ -50,6 +65,14 @@ in
|
|||
zsh.shellInit = ''
|
||||
export VSPHERE_USER="$(cat ${config.sops.secrets.vcuser.path})"
|
||||
export VSPHERE_PW="$(cat ${config.sops.secrets.vcpw.path})"
|
||||
export GOVC_USERNAME="$(cat ${config.sops.secrets.govcuser.path})"
|
||||
export GOVC_PASSWORD="$(cat ${config.sops.secrets.govcpw.path})"
|
||||
export GOVC_URL="$(cat ${config.sops.secrets.govcurl.path})"
|
||||
export GOVC_DATACENTER="$(cat ${config.sops.secrets.govcdc.path})"
|
||||
export GOVC_DATASTORE="$(cat ${config.sops.secrets.govcds.path})"
|
||||
export GOVC_HOST="$(cat ${config.sops.secrets.govchost.path})"
|
||||
export GOVC_RESOURCE_POOL="$(cat ${config.sops.secrets.govcpool.path})"
|
||||
export GOVC_NETWORK="$(cat ${config.sops.secrets.govcnetwork.path})"
|
||||
'';
|
||||
|
||||
browserpass.enable = true;
|
||||
|
|
@ -123,7 +146,7 @@ in
|
|||
openssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
'';
|
||||
'';
|
||||
};
|
||||
|
||||
syncthing = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue