From 4c0cabe4bae7509dad8215d1c4673734dc23f993 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Fri, 22 Mar 2024 21:16:12 +0100 Subject: [PATCH 1/2] [yubikey] Add module --- nixos/modules/hardware/default.nix | 1 + nixos/modules/hardware/yubikey/default.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 nixos/modules/hardware/yubikey/default.nix diff --git a/nixos/modules/hardware/default.nix b/nixos/modules/hardware/default.nix index efa0833..f77ad04 100644 --- a/nixos/modules/hardware/default.nix +++ b/nixos/modules/hardware/default.nix @@ -1,5 +1,6 @@ { imports = [ ./nvidia + ./yubikey ]; } diff --git a/nixos/modules/hardware/yubikey/default.nix b/nixos/modules/hardware/yubikey/default.nix new file mode 100644 index 0000000..8deb1ed --- /dev/null +++ b/nixos/modules/hardware/yubikey/default.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.sisyphus.hardware.yubikey; +in { + options.sisyphus.hardware.yubikey.enable = lib.mkEnableOption "YubiKey support"; + + config = lib.mkIf cfg.enable { + # Enable smart card reading + services.pcscd.enable = true; + + programs.gnupg.agent = { + enable = true; + pinentryFlavor = "curses"; + }; + }; +} From e9274202bb5f2d12736972b60b5ad5c83bd85a3b Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Fri, 22 Mar 2024 21:29:30 +0100 Subject: [PATCH 2/2] [git] Add PGP signing --- stow/git/.config/git/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stow/git/.config/git/config b/stow/git/.config/git/config index 19e8151..196318f 100644 --- a/stow/git/.config/git/config +++ b/stow/git/.config/git/config @@ -1,10 +1,15 @@ [user] name = "Tibo De Peuter" - email = "tibo.depeuter@gmail.com" + email = "tibo@depeuter.dev" + signingkey = "0x9B11F5243089DB5B" [color] ui = true +[commit] + # Always sign commits + gpgsign = true + [core] editor = "vim"; excludesFile = "~/.config/git/ignore"