Added pingvin and vaultwarden
This commit is contained in:
30
modules/home/containers/vaultwarden.nix
Normal file
30
modules/home/containers/vaultwarden.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.containers.vaultwarden;
|
||||
in {
|
||||
options = {
|
||||
settings.containers.vaultwarden.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Enable Vaultwarden container
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.podman.containers.vaultwarden = {
|
||||
image = "ghcr.io/dani-garcia/vaultwarden:latest";
|
||||
network = "proxy";
|
||||
volumes = [
|
||||
"%h/containers/vaultwarden/data:/data"
|
||||
];
|
||||
environment = {
|
||||
DOMAIN = "https://vault.local.tbmrs.nl";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user