feat: add fprintd signin and enabled in kokoro system config
This commit is contained in:
parent
1dc0c022a9
commit
1641129ed5
2 changed files with 24 additions and 0 deletions
23
modules/nixos/hardware/fingerprint/default.nix
Normal file
23
modules/nixos/hardware/fingerprint/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
|
||||
base = "${namespace}.hardware.fingerprint";
|
||||
cfg = getAttrByNamespace config base;
|
||||
in {
|
||||
options = mkOptionsWithNamespace base {
|
||||
enable = mkEnableOption "fingerprint signins";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.fprintd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
${namespace}.services.storage.impermanence.folders = ["/var/lib/fprint"];
|
||||
};
|
||||
}
|
||||
|
|
@ -24,6 +24,7 @@ in {
|
|||
|
||||
hardware = {
|
||||
battery = enabled;
|
||||
fingerprint = enabled;
|
||||
xremap = enabled;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue