Rework common profile into module system

This commit is contained in:
Charlotte Van Petegem 2020-12-05 13:39:22 +01:00
parent 9d2e54547c
commit 9fdec35027
No known key found for this signature in database
GPG key ID: 019E764B7184435A
29 changed files with 288 additions and 214 deletions

16
modules/eid.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
{
options.chvp.eid.enable = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.eid.enable {
environment.systemPackages = [ pkgs.eid-mw ];
services.pcscd = {
enable = true;
plugins = [ pkgs.ccid ];
};
};
}