From 8692130d5e82abfb5bc26326469f6234e285de08 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 1 Feb 2022 09:26:15 -0500 Subject: [PATCH] module: add peripherals/fprint-sensor --- hosts/Infini-FRAMEWORK/default.nix | 6 ++++-- modules/modules/Modules.org | 4 ++++ .../modules/hardware/peripherals/fprint-sensor.nix | 11 +++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 modules/modules/hardware/peripherals/fprint-sensor.nix diff --git a/hosts/Infini-FRAMEWORK/default.nix b/hosts/Infini-FRAMEWORK/default.nix index d0dc8e2..987c586 100644 --- a/hosts/Infini-FRAMEWORK/default.nix +++ b/hosts/Infini-FRAMEWORK/default.nix @@ -39,6 +39,10 @@ hardware = { gpu.intel = true; form.laptop = true; + + peripherals = { + fprint-sensor.enable = true; + }; }; services = { proxy.enable = true; @@ -61,6 +65,4 @@ hardware.video.hidpi.enable = false; console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz"; console.earlySetup = lib.mkDefault true; - - services.fprintd.enable = true; } diff --git a/modules/modules/Modules.org b/modules/modules/Modules.org index c627bc6..48fa993 100644 --- a/modules/modules/Modules.org +++ b/modules/modules/Modules.org @@ -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. +*** Fprint Sensor :module: + +Setup for the =fprintd= daemon for using fingerprints for authentication. Alias of =services.fprintd=. + ** Audio :module: Sets up computer audio, specifically using PulseAudio. diff --git a/modules/modules/hardware/peripherals/fprint-sensor.nix b/modules/modules/hardware/peripherals/fprint-sensor.nix new file mode 100644 index 0000000..0fe8c96 --- /dev/null +++ b/modules/modules/hardware/peripherals/fprint-sensor.nix @@ -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; +}