Skip to content

Commit

Permalink
Update NixOS instructions in readme
Browse files Browse the repository at this point in the history
We merged the tod module, so this is much simpler now :)
  • Loading branch information
Valodim authored and 3v1n0 committed Jun 21, 2021
1 parent e34de1d commit 2978dc0
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,14 @@ Install packages:

#### NixOS

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

```
self: super: {
libfprint = super.libfprint.overrideAttrs (
up: {
version = "1.90.1+vfs0090.1";
src = super.fetchFromGitHub {
owner = "3v1n0";
repo = "libfprint";
rev = "48f3bb005d256477658273f0592442143740408e";
sha256 = "sha256-Ari94tq9Q7LAxh/TOdoRG9J3kAzEnitwwPA5E5HFxxc=";
fetchSubmodules = true;
};
buildInputs = up.buildInputs ++ ([ self.openssl ]);
}
);
{
services.fprintd.enable = true;
services.fprintd.tod.enable = true;
services.fprintd.tod.driver = pkgsUnstable.libfprint-2-tod1-vfs0090;
}
```

Expand Down

0 comments on commit 2978dc0

Please sign in to comment.