mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: enable hyprlock u2fAuth/fprintAuth
This commit is contained in:
parent
07c610ad3a
commit
9dfd94b35a
1 changed files with 11 additions and 5 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
{ pkgs, inputs, config, username, host, ...}:
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
username,
|
||||||
|
host,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
|
||||||
|
|
@ -17,11 +23,11 @@
|
||||||
sudo.u2fAuth = true;
|
sudo.u2fAuth = true;
|
||||||
swaylock.fprintAuth = if (host == "sakura") then true else false;
|
swaylock.fprintAuth = if (host == "sakura") then true else false;
|
||||||
# No longer using Hyprlock, might stay here for if I ever switch to it again.
|
# No longer using Hyprlock, might stay here for if I ever switch to it again.
|
||||||
# hyprlock.u2fAuth = true;
|
hyprlock.u2fAuth = true;
|
||||||
# hyprlock.fprintAuth = if (host == "sakura") then true else false;
|
hyprlock.fprintAuth = if (host == "sakura") then true else false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.fprintd.enable = if (host == "sakura") then true else false;
|
services.fprintd.enable = if (host == "sakura") then true else false;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue