mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +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 ];
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
|
@ -16,14 +16,14 @@
|
||||||
greetd.u2fAuth = true;
|
greetd.u2fAuth = true;
|
||||||
sudo.u2fAuth = true;
|
sudo.u2fAuth = true;
|
||||||
hyprlock.u2fAuth = true;
|
hyprlock.u2fAuth = true;
|
||||||
swaylock.fprintAuth = true;
|
|
||||||
hyprlock.fprintAuth = true;
|
|
||||||
# pam.services.swaylock = {}; # Already enabled
|
# pam.services.swaylock = {}; # Already enabled
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
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; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue