From ead9d4f9c13a017747ee25a74d583d3b2bd1c960 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 26 Jul 2024 11:05:34 -0400 Subject: [PATCH] hardware/peripherals: remove fprint-sensor --- hosts/Infini-FRAMEWORK/default.nix | 2 +- modules/global/persist.nix | 2 ++ .../hardware/peripherals/fprint-sensor.nix | 16 ---------------- 3 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 modules/modules/hardware/peripherals/fprint-sensor.nix diff --git a/hosts/Infini-FRAMEWORK/default.nix b/hosts/Infini-FRAMEWORK/default.nix index 211e861..bed81c3 100644 --- a/hosts/Infini-FRAMEWORK/default.nix +++ b/hosts/Infini-FRAMEWORK/default.nix @@ -27,7 +27,6 @@ form.laptop = true; peripherals = { - fprint-sensor.enable = true; printing.enable = true; }; }; @@ -41,6 +40,7 @@ }; }; + services.fprintd.enable = true; virtualisation.enable = true; programs.ns-usbloader.enable = true; diff --git a/modules/global/persist.nix b/modules/global/persist.nix index 9b6d2b5..9e144fc 100644 --- a/modules/global/persist.nix +++ b/modules/global/persist.nix @@ -14,6 +14,8 @@ in "/var/lib/tailscale" "/root/.ssh" + + (optional config.services.fprintd.enable "/var/lib/fprint") ]; files = [ "/etc/machine-id" diff --git a/modules/modules/hardware/peripherals/fprint-sensor.nix b/modules/modules/hardware/peripherals/fprint-sensor.nix deleted file mode 100644 index ae5b6dd..0000000 --- a/modules/modules/hardware/peripherals/fprint-sensor.nix +++ /dev/null @@ -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" - ]; -}