Merge branch 'feature/vaultwarden' into 'main'

vaultwarden: add nixos unstable module

See merge request hacc/infra/haccfiles!80
keep-around/99956a398dce90b0d7562ab1cb3399dbea09c0a5
stuebinm 2021-09-20 10:46:26 +00:00
commit 99956a398d
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";
};
}