Migrated from import based to config based
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
{ lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
services.fprintd.enable = true;
|
||||
with lib;
|
||||
|
||||
security.pam.services.login.fprintAuth = false;
|
||||
security.pam.services.cosmic-greeter.fprintAuth = false;
|
||||
let
|
||||
cfg = config.settings.hardware.fprint;
|
||||
in {
|
||||
options = {
|
||||
settings.hardware.fprint.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
description = ''
|
||||
Enable fingerprint
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.fprintd.enable = true;
|
||||
|
||||
security.pam.services.login.fprintAuth = false;
|
||||
security.pam.services.cosmic-greeter.fprintAuth = false;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user