mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
6846d4ab85
Upstream has a systemd service.
46 lines
585 B
Nix
46 lines
585 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.services.fprintd;
|
|
|
|
in
|
|
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.fprintd = {
|
|
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Whether to enable fprintd daemon and PAM module for fingerprint readers handling.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.dbus.packages = [ pkgs.fprintd ];
|
|
|
|
environment.systemPackages = [ pkgs.fprintd ];
|
|
|
|
systemd.packages = [ pkgs.fprintd ];
|
|
|
|
};
|
|
|
|
}
|