1 { config, lib, pkgs, ... }:
6 cfg = config.programs.ausweisapp;
9 options.programs.ausweisapp = {
10 enable = mkEnableOption (lib.mdDoc "AusweisApp");
12 openFirewall = mkOption {
13 description = lib.mdDoc ''
14 Whether to open the required firewall ports for the Smartphone as Card Reader (SaC) functionality of AusweisApp.
17 type = lib.types.bool;
21 config = mkIf cfg.enable {
22 environment.systemPackages = with pkgs; [ ausweisapp ];
23 networking.firewall.allowedUDPPorts = lib.optionals cfg.openFirewall [ 24727 ];