mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: conditionally toggle authentication options
This commit is contained in:
parent
4dedd8095d
commit
25fa5b5d99
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ...}:
|
||||
{ pkgs, inputs, config, username, host, ...}:
|
||||
|
||||
{
|
||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||
|
|
@ -16,14 +16,14 @@
|
|||
greetd.u2fAuth = true;
|
||||
sudo.u2fAuth = true;
|
||||
hyprlock.u2fAuth = true;
|
||||
swaylock.fprintAuth = true;
|
||||
hyprlock.fprintAuth = true;
|
||||
# pam.services.swaylock = {}; # Already enabled
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
fprintd.enable = true;
|
||||
fprintd.enable = if (host == "sakura") then true else false;
|
||||
swaylock.fprintAuth = if (host == "sakura") then true else false;
|
||||
hyprlock.fprintAuth = if (host == "sakura") then true else false;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue