module: add peripherals/fprint-sensor

This commit is contained in:
Infinidoge 2022-02-01 09:26:15 -05:00
parent 4ce078113f
commit 8692130d5e
3 changed files with 19 additions and 2 deletions

View file

@ -39,6 +39,10 @@
hardware = { hardware = {
gpu.intel = true; gpu.intel = true;
form.laptop = true; form.laptop = true;
peripherals = {
fprint-sensor.enable = true;
};
}; };
services = { services = {
proxy.enable = true; proxy.enable = true;
@ -61,6 +65,4 @@
hardware.video.hidpi.enable = false; hardware.video.hidpi.enable = false;
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz"; console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
console.earlySetup = lib.mkDefault true; console.earlySetup = lib.mkDefault true;
services.fprintd.enable = true;
} }

View file

@ -30,6 +30,10 @@ Sets up printing drivers. Currently non-functional, but attempts to include driv
Setup the OpenRazer daemon and install management software. Currently uses RazerGenie, to be replaced by Polychromatic. Setup the OpenRazer daemon and install management software. Currently uses RazerGenie, to be replaced by Polychromatic.
*** Fprint Sensor :module:
Setup for the =fprintd= daemon for using fingerprints for authentication. Alias of =services.fprintd=.
** Audio :module: ** Audio :module:
Sets up computer audio, specifically using PulseAudio. Sets up computer audio, specifically using PulseAudio.

View file

@ -0,0 +1,11 @@
{ config, options, lib, pkgs, ... }:
with lib;
with lib.hlissner;
let
cfg = config.modules.hardware.peripherals.fprint-sensor;
in
{
options.modules.hardware.peripherals.fprint-sensor = mkOpt types.attrs { };
config.services.fprintd = mkAliasDefinitions options.modules.hardware.peripherals.fprint-sensor;
}