nixos-config/configurations/host/waffentrager/services/auth.nix

14 lines
341 B
Nix
Raw Normal View History

2024-04-02 19:43:49 +02:00
{ materusArg, config, lib, pkgs, ... }:
{
options.waffentragerService.auth.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable auth";
config =
let
2024-04-05 22:41:05 +02:00
cfg = config.waffentragerService.auth;
2024-04-02 19:43:49 +02:00
in
lib.mkIf cfg.enable {
waffentragerService.elements.enable = true;
waffentragerService.nginx.enable = true;
};
}