mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
hardware/id-card: init
This commit is contained in:
parent
58bc1c8ebc
commit
7a51284072
2 changed files with 18 additions and 1 deletions
|
@ -7,9 +7,10 @@
|
||||||
./drive-monitor
|
./drive-monitor
|
||||||
./firmware
|
./firmware
|
||||||
./graphics
|
./graphics
|
||||||
|
./id-card
|
||||||
./keychron
|
./keychron
|
||||||
./yubikey
|
|
||||||
./sound
|
./sound
|
||||||
./thunderbolt
|
./thunderbolt
|
||||||
|
./yubikey
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
16
modules/hardware/id-card/default.nix
Normal file
16
modules/hardware/id-card/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue