This commit is contained in:
Franek 2025-02-18 18:39:22 +01:00
parent 044d105a8c
commit 3c0832158f
2 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,7 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = { nix.gc = {
automatic = true; automatic = true;
dates = "weekly"; options = "--delete-older-than 7d";
options = "--delete-old";
}; };
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -7,7 +7,8 @@
}; };
config = lib.mkIf config.services.fingerprint-fix.enable { 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" ]; targets = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
in { in {
description = "Restart services to fix fingerprint integration"; description = "Restart services to fix fingerprint integration";
@ -18,13 +19,13 @@
ExecStart = "systemctl restart python3-validity.service"; ExecStart = "systemctl restart python3-validity.service";
}; };
}; };
services."06cb-009a-fingerprint-sensor" = { services."06cb-009a-fingerprint-sensor" = {
enable = true; enable = true;
backend = "python-validity"; backend = "python-validity";
calib-data-file = config.services.fingerprint-fix.calibDataFile; calib-data-file = config.services.fingerprint-fix.calibDataFile;
}; };
services.open-fprintd.enable = lib.mkForce true; # Fprintd is not working with P51s services.fprintd.enable = lib.mkForce true; # Fprintd is not working with P51s
systemd.services.open-fprintd-resume.enable = true;
}; };
} }