module: add peripherals/fprint-sensor
This commit is contained in:
parent
4ce078113f
commit
8692130d5e
3 changed files with 19 additions and 2 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
11
modules/modules/hardware/peripherals/fprint-sensor.nix
Normal file
11
modules/modules/hardware/peripherals/fprint-sensor.nix
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue