flake: convert secrets to module argument
This commit is contained in:
parent
941b8060c9
commit
303c344ffb
7 changed files with 13 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, common, lib, pkgs, ... }:
|
||||
{ config, common, secrets, lib, pkgs, ... }:
|
||||
let
|
||||
domain = common.subdomain "bitwarden";
|
||||
in
|
||||
|
@ -13,7 +13,7 @@ in
|
|||
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
environmentFile = config.secrets."vaultwarden";
|
||||
environmentFile = secrets."vaultwarden";
|
||||
dataDir = "/srv/vaultwarden";
|
||||
config = with common.email; {
|
||||
DOMAIN = "https://${domain}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue