mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add vaultwarden
This commit is contained in:
parent
691b2b9457
commit
a15ee278a5
4 changed files with 27 additions and 0 deletions
24
modules/nixos/server/vault.nix
Normal file
24
modules/nixos/server/vault.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.mods.server.vault;
|
||||
port = config.mods.server.nginx.ports.vault;
|
||||
in with lib; {
|
||||
options.mods.server = {
|
||||
vault = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "enables vaultwarden server";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
config = {
|
||||
ROCKET_ADDRESS = "0.0.0.0";
|
||||
ROCKET_PORT = port;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue