From 3c0832158fd0213f555a9763882120763fbf2451 Mon Sep 17 00:00:00 2001 From: Franek Date: Tue, 18 Feb 2025 18:39:22 +0100 Subject: [PATCH] fix typo --- hosts/hulk/default.nix | 3 +-- modules/open-fprint-suspend-fix.nix | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/hulk/default.nix b/hosts/hulk/default.nix index a4800c6..2e7978a 100644 --- a/hosts/hulk/default.nix +++ b/hosts/hulk/default.nix @@ -12,8 +12,7 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.gc = { automatic = true; - dates = "weekly"; - options = "--delete-old"; + options = "--delete-older-than 7d"; }; nixpkgs.config.allowUnfree = true; diff --git a/modules/open-fprint-suspend-fix.nix b/modules/open-fprint-suspend-fix.nix index cc29f44..62f08d3 100644 --- a/modules/open-fprint-suspend-fix.nix +++ b/modules/open-fprint-suspend-fix.nix @@ -7,7 +7,8 @@ }; config = lib.mkIf config.services.fingerprint-fix.enable { - systemd.services.validity-restart = let + # Needed because we're getting TLS error with open-fprintd-resume + systemd.services.validity-restart = let targets = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ]; in { description = "Restart services to fix fingerprint integration"; @@ -18,13 +19,13 @@ ExecStart = "systemctl restart python3-validity.service"; }; }; + services."06cb-009a-fingerprint-sensor" = { enable = true; backend = "python-validity"; calib-data-file = config.services.fingerprint-fix.calibDataFile; }; - services.open-fprintd.enable = lib.mkForce true; # Fprintd is not working with P51s - systemd.services.open-fprintd-resume.enable = true; + services.fprintd.enable = lib.mkForce true; # Fprintd is not working with P51s }; }