Skip to content

Commit 2978dc0

Browse files
Valodim3v1n0
authored andcommitted
Update NixOS instructions in readme
We merged the tod module, so this is much simpler now :)
1 parent e34de1d commit 2978dc0

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

README.md

+6-16
Original file line numberDiff line numberDiff line change
@@ -84,24 +84,14 @@ Install packages:
8484

8585
#### NixOS
8686

87-
- Enable fprintd as usual via `services.fprintd.enable = true;`
88-
- Apply this overlay (possibly update rev and sha256, if necessary):
87+
NixOS has the tod module in nixpkgs-unstable (merged June 2021).
88+
On release 21.05 or newer, and assuming `pkgsUnstable` is an unstable nixpkgs, configure like this:
8989

9090
```
91-
self: super: {
92-
libfprint = super.libfprint.overrideAttrs (
93-
up: {
94-
version = "1.90.1+vfs0090.1";
95-
src = super.fetchFromGitHub {
96-
owner = "3v1n0";
97-
repo = "libfprint";
98-
rev = "48f3bb005d256477658273f0592442143740408e";
99-
sha256 = "sha256-Ari94tq9Q7LAxh/TOdoRG9J3kAzEnitwwPA5E5HFxxc=";
100-
fetchSubmodules = true;
101-
};
102-
buildInputs = up.buildInputs ++ ([ self.openssl ]);
103-
}
104-
);
91+
{
92+
services.fprintd.enable = true;
93+
services.fprintd.tod.enable = true;
94+
services.fprintd.tod.driver = pkgsUnstable.libfprint-2-tod1-vfs0090;
10595
}
10696
```
10797

0 commit comments

Comments
 (0)