feat: conditional auth toggling

This commit is contained in:
Ahwx 2024-12-20 00:23:04 +01:00
parent e04dc06502
commit 3a7e0e9657

View file

@ -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
};
};
services = {
fprintd.enable = if (host == "sakura") then true else false;
swaylock.fprintAuth = 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; hyprlock.fprintAuth = 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; [
yubikey-manager yubikey-manager