hardware/peripherals: remove fprint-sensor

This commit is contained in:
Infinidoge 2024-07-26 11:05:34 -04:00
parent 7c4d75bf46
commit ead9d4f9c1
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
3 changed files with 3 additions and 17 deletions

View file

@ -27,7 +27,6 @@
form.laptop = true; form.laptop = true;
peripherals = { peripherals = {
fprint-sensor.enable = true;
printing.enable = true; printing.enable = true;
}; };
}; };
@ -41,6 +40,7 @@
}; };
}; };
services.fprintd.enable = true;
virtualisation.enable = true; virtualisation.enable = true;
programs.ns-usbloader.enable = true; programs.ns-usbloader.enable = true;

View file

@ -14,6 +14,8 @@ in
"/var/lib/tailscale" "/var/lib/tailscale"
"/root/.ssh" "/root/.ssh"
(optional config.services.fprintd.enable "/var/lib/fprint")
]; ];
files = [ files = [
"/etc/machine-id" "/etc/machine-id"

View file

@ -1,16 +0,0 @@
{ config, options, lib, pkgs, ... }:
with lib;
with lib.our;
let
# Since it is aliased
cfg = config.services.fprintd;
in
{
options.modules.hardware.peripherals.fprint-sensor = mkOpt types.attrs { };
config.services.fprintd = mkAliasDefinitions options.modules.hardware.peripherals.fprint-sensor;
config.persist.directories = mkIf cfg.enable [
"/var/lib/fprint"
];
}