hardware/peripherals: remove fprint-sensor
This commit is contained in:
parent
7c4d75bf46
commit
ead9d4f9c1
3 changed files with 3 additions and 17 deletions
|
@ -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;
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue