Home Gen509 @ 2025-05-03-15:04 by jonas@comfy-station
This commit is contained in:
@@ -43,5 +43,6 @@
|
||||
./home/plasma.nix
|
||||
./home/ssh.nix
|
||||
./home/wallpaper.nix
|
||||
./home/yubikey.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user