mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
16 lines
301 B
Nix
16 lines
301 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.hardware.id-card;
|
|
in
|
|
{
|
|
options.my.hardware.id-card = with lib; {
|
|
enable = mkEnableOption "german id card authentication";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.ausweisapp = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|