Compare commits

...

2 commits

Author SHA1 Message Date
e9274202bb
[git] Add PGP signing 2024-03-22 21:29:30 +01:00
4c0cabe4ba
[yubikey] Add module 2024-03-22 21:16:12 +01:00
3 changed files with 24 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./nvidia ./nvidia
./yubikey
]; ];
} }

View file

@ -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";
};
};
}

View file

@ -1,10 +1,15 @@
[user] [user]
name = "Tibo De Peuter" name = "Tibo De Peuter"
email = "tibo.depeuter@gmail.com" email = "tibo@depeuter.dev"
signingkey = "0x9B11F5243089DB5B"
[color] [color]
ui = true ui = true
[commit]
# Always sign commits
gpgsign = true
[core] [core]
editor = "vim"; editor = "vim";
excludesFile = "~/.config/git/ignore" excludesFile = "~/.config/git/ignore"