Home Gen509 @ 2025-05-03-15:04 by jonas@comfy-station

This commit is contained in:
2025-05-03 15:30:32 +02:00
parent 587f734ac1
commit 1a76403f0b
5 changed files with 11 additions and 13 deletions

View File

@@ -43,5 +43,6 @@
./home/plasma.nix
./home/ssh.nix
./home/wallpaper.nix
./home/yubikey.nix
];
}

View File

@@ -3,8 +3,11 @@
lib,
pkgs,
...
}: {
options.yubikey = with lib; {
}: let
cfg = config.hive.yubikey;
in {
options.hive.yubikey = with lib; {
enable = mkEnableOption "Yubikey support";
pinentry = mkOption {
type = types.enum ["qt" "gnome3"];
default = "qt";
@@ -12,7 +15,7 @@
};
};
config = {
config = lib.mkIf cfg.enable {
programs.gpg = {
enable = true;
mutableKeys = false;
@@ -29,7 +32,7 @@
enableSshSupport = true;
enableZshIntegration = true;
pinentryPackage =
if config.yubikey.pinentry == "qt"
if cfg.pinentry == "qt"
then pkgs.pinentry-qt
else pkgs.pinentry.gnome3;
extraConfig = ''