home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 80037190baec406d87920f17cd3529732f6a9fdc
parent 3d53f6be644082829fd6b1cdddf1d473061f53e5
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 15 Oct 2021 15:57:06 +0200

systems/modules: yubioath-desktop only when desktop is enabled

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/modules/hardware/yubikey.nix | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/systems/modules/hardware/yubikey.nix b/systems/modules/hardware/yubikey.nix @@ -20,7 +20,6 @@ in systemPackages = with pkgs; [ yubico-piv-tool yubikey-personalization - yubioath-desktop yubikey-manager ]; }; @@ -36,6 +35,11 @@ in }; }; } + (mkIf cfg.config.desktop { + environment.systemPackages = with pkgs; [ + yubioath-desktop + ]; + }) (mkIf cfg.u2f { security.pam.u2f = { enable = true;