mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-10-30 17:32:09 +01:00
17 lines
301 B
Nix
17 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;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|