mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: conditional auth toggling
This commit is contained in:
parent
e04dc06502
commit
3a7e0e9657
1 changed files with 4 additions and 7 deletions
|
|
@ -16,15 +16,12 @@
|
||||||
greetd.u2fAuth = true;
|
greetd.u2fAuth = true;
|
||||||
sudo.u2fAuth = true;
|
sudo.u2fAuth = true;
|
||||||
hyprlock.u2fAuth = true;
|
hyprlock.u2fAuth = true;
|
||||||
# pam.services.swaylock = {}; # Already enabled
|
swaylock.fprintAuth = if (host == "sakura") then true else false;
|
||||||
|
hyprlock.fprintAuth = if (host == "sakura") then true else false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services.fprintd.enable = if (host == "sakura") then true else false;
|
||||||
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; [
|
environment.systemPackages = with pkgs; [
|
||||||
yubikey-manager
|
yubikey-manager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue