Enable bitwarden admin
This commit is contained in:
parent
f03b88d591
commit
b0ffe238e9
3 changed files with 16 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue