Skip to content

Commit

Permalink
feat(nixos): add fingerprint authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhoenle committed Jul 14, 2024
1 parent 9d9ac58 commit 2fe61cd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ restic-hdd snapshots
restic-hdd restore latest --target /
```

## Fingerprint authentication

```bash
# add fingerprint
sudo fprintd-enroll ruben

# verify fingerprint
sudo fprintd-verify ruben
```

## agenix

[agenix](https://github.com/ryantm/agenix) is a tool for encrypted secrets in your NixOS config.
Expand Down
9 changes: 9 additions & 0 deletions modules/fingerprint.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
services.fprintd.enable = true;

security.pam.services = {
swaylock.fprintAuth = false;
login.fprintAuth = true;
sudo.fprintAuth = true;
};
}
1 change: 1 addition & 0 deletions modules/modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
./bluetooth.nix
./boot.nix
./docker.nix
./fingerprint.nix
./firmware.nix
./fonts.nix
./gtk.nix
Expand Down

0 comments on commit 2fe61cd

Please sign in to comment.