From 6034938775203c5e2597c92d499a0ef5ac0c8785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 14 Apr 2024 22:06:49 +0200 Subject: [PATCH] add yubikey --- home/jonas/home.nix | 3 ++- home/jonas/yubikey.nix | 10 ++++++++++ hosts/comfy-station/configuration.nix | 1 + modules/hardware/yubikey.nix | 13 +++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 home/jonas/yubikey.nix create mode 100644 modules/hardware/yubikey.nix diff --git a/home/jonas/home.nix b/home/jonas/home.nix index ab275b3..b457ecd 100644 --- a/home/jonas/home.nix +++ b/home/jonas/home.nix @@ -2,8 +2,9 @@ { imports = [ - ./plasma.nix ./firefox.nix + ./plasma.nix + ./yubikey.nix ]; # Home Manager needs a bit of information about you and the paths it should diff --git a/home/jonas/yubikey.nix b/home/jonas/yubikey.nix new file mode 100644 index 0000000..4955ccd --- /dev/null +++ b/home/jonas/yubikey.nix @@ -0,0 +1,10 @@ +{ config, ... }: + +{ + programs.gpg = { + enable = true; + settings = { + enable-ssh-support = true; + }; + }; +} \ No newline at end of file diff --git a/hosts/comfy-station/configuration.nix b/hosts/comfy-station/configuration.nix index c9e4dd1..9a46c29 100644 --- a/hosts/comfy-station/configuration.nix +++ b/hosts/comfy-station/configuration.nix @@ -12,6 +12,7 @@ ../../modules/hardware/bluetooth.nix ../../modules/hardware/printing.nix ../../modules/hardware/sound.nix + ../../modules/hardware/yubikey.nix ../../modules/services/docker.nix ../../modules/desktop/dm ../../modules/desktop/de diff --git a/modules/hardware/yubikey.nix b/modules/hardware/yubikey.nix new file mode 100644 index 0000000..00e376d --- /dev/null +++ b/modules/hardware/yubikey.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: +{ + # Include udev rules for yubikey. + services.udev.packages = with pkgs; [ + yubikey-personalization + ]; + + # OTP Manager + environment.systemPackages = with pkgs; [ + yubioath-flutter + ]; + services.pcscd.enable = true; +}