1 { config, lib, pkgs, ... }:
4 cfg = config.programs.ausweisapp;
7 options.programs.ausweisapp = {
8 enable = lib.mkEnableOption "AusweisApp";
10 openFirewall = lib.mkOption {
12 Whether to open the required firewall ports for the Smartphone as Card Reader (SaC) functionality of AusweisApp.
15 type = lib.types.bool;
19 config = lib.mkIf cfg.enable {
20 environment.systemPackages = with pkgs; [ ausweisapp ];
21 networking.firewall.allowedUDPPorts = lib.optionals cfg.openFirewall [ 24727 ];