Commit 80037190baec

Vincent Demeester <vincent@sbr.pm>
2021-10-15 15:57:06
systems/modules: yubioath-desktop only when desktop is enabled
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3d53f6b
Changed files (1)
systems
modules
hardware
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;