Enable bitwarden admin

This commit is contained in:
Natsu Kagami 2023-08-10 20:49:16 +02:00
parent f03b88d591
commit b0ffe238e9
Signed by: nki
GPG key ID: 55A032EB38B49ADB
3 changed files with 16 additions and 3 deletions

View file

@ -15,7 +15,13 @@ let
host = "bw.nkagami.me";
in
{
options.cloud.bitwarden = { };
options.cloud.bitwarden = {
envFile = mkOption {
type = types.nullOr types.path;
description = "Path to the env file containing stuff";
default = null;
};
};
config = {
# users
@ -53,10 +59,12 @@ in
DOMAIN = "https://${host}";
};
serviceConfig = {
User = user;
Group = user;
ExecStart = "${pkgs.unstable.vaultwarden-postgresql}/bin/vaultwarden";
EnvironmentFile = lists.optional (cfg.envFile != null) cfg.envFile;
LimitNOFILE = "1048576";
PrivateTmp = "true";
PrivateDevices = "true";