vaultwarden: add nixos unstable module

keep-around/c88465abcffef637b3e6bddc03f51b094ac14654
stuebinm 2021-09-20 12:42:18 +02:00
parent e63af3984c
commit c88465abcf
No known key found for this signature in database
GPG Key ID: 8FBE8AAD32FA12B7
4 changed files with 22 additions and 1 deletions

View File

@ -21,6 +21,7 @@
../../services/gitlab-runner.nix
../../services/unifi.nix
../../services/lantifa.nix
../../services/vaultwarden.nix
./lxc.nix
];

View File

@ -5,5 +5,12 @@ in {
imports = [
./nftnat
./decklink.nix
"${sources.nixpkgs-unstable}/nixos/modules/services/security/vaultwarden"
];
# disabled since vaultwarden defines a dummy bitwarden_rs option that
# shows a deprication warning, which conflicts with this module
disabledModules = [
"services/security/bitwarden_rs/default.nix"
];
}

View File

@ -60,7 +60,7 @@ let
'';
};
inherit (unstable) bottom;
inherit (unstable) bottom vaultwarden vaultwarden-vault;
};
in pkgs.extend(_: _: newpkgs)

13
services/vaultwarden.nix Normal file
View File

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
{
services.vaultwarden = {
enable = true;
# TODO!
config = {};
dbBackend = "sqlite";
backupDir = "/persist/data/vaultwarden";
};
}