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.gc = {
automatic = true;
dates = "weekly";
options = "--delete-old";
options = "--delete-older-than 7d";
};
nixpkgs.config.allowUnfree = true;

View File

@ -7,6 +7,7 @@
};
config = lib.mkIf config.services.fingerprint-fix.enable {
# 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 {
@ -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
};
}