[NixOS] Enable vaultwarden admin page
This commit is contained in:
@@ -39,9 +39,15 @@ in
|
|||||||
};
|
};
|
||||||
services.k3s.disableAgent = true;
|
services.k3s.disableAgent = true;
|
||||||
|
|
||||||
|
age.secrets.vaultwarden-environment-file = {
|
||||||
|
file = ../secrets/vaultwarden-environment-file.age;
|
||||||
|
owner = "vaultwarden";
|
||||||
|
};
|
||||||
|
|
||||||
services.vaultwarden = {
|
services.vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
backupDir = "/var/backup/vaultwarden";
|
backupDir = "/var/backup/vaultwarden";
|
||||||
|
environmentFile = config.age.secrets.vaultwarden-environment-file.path;
|
||||||
config = {
|
config = {
|
||||||
ROCKET_ADDRESS = "::1";
|
ROCKET_ADDRESS = "::1";
|
||||||
ROCKET_PORT = 8222;
|
ROCKET_PORT = 8222;
|
||||||
|
|||||||
@@ -19,4 +19,5 @@ in
|
|||||||
"k3s-registry.yaml.age".publicKeys = keys.agenixKeys ++ keys.railbird-sf;
|
"k3s-registry.yaml.age".publicKeys = keys.agenixKeys ++ keys.railbird-sf;
|
||||||
"discourse-admin-password.age".publicKeys = keys.hostKeys;
|
"discourse-admin-password.age".publicKeys = keys.hostKeys;
|
||||||
"discourse-secret-key-base.age".publicKeys = keys.hostKeys;
|
"discourse-secret-key-base.age".publicKeys = keys.hostKeys;
|
||||||
|
"vaultwarden-environment-file.age".publicKeys = keys.hostKeys;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
nixos/secrets/vaultwarden-environment-file.age
Normal file
BIN
nixos/secrets/vaultwarden-environment-file.age
Normal file
Binary file not shown.
Reference in New Issue
Block a user