mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
feat(services): WIP Traefik service base
This commit is contained in:
parent
16dae5bcd5
commit
b23bddaf71
2 changed files with 101 additions and 3 deletions
20
modules/nixos/services/vaultwarden/default.nix
Normal file
20
modules/nixos/services/vaultwarden/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
namespace,
|
||||
hostname,
|
||||
config,
|
||||
...
|
||||
}: with lib; with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.services.vaultwarden;
|
||||
in {
|
||||
options.${namespace}.services.vaultwarden = { enable = mkEnableOption "Enable the Vaultwarden service."; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation.oci-containers.containers.vaultwarden = {
|
||||
image = "vaultwarden/server";
|
||||
autoStart = true;
|
||||
hostname = hostname;
|
||||
# Todo: continue writing vaultwarden config
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue