aboutsummaryrefslogtreecommitdiff
path: root/nixos/yubikey.nix
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-07-25 13:40:27 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-07-25 13:40:27 -0400
commitf2fb01a55b54dae9a5c26c7e1bae3d17c18de73e (patch)
treec861617d8ff6f5fdf188b1f7dd5774c1d17a3cd5 /nixos/yubikey.nix
parent8a0457f14d000b4aae8bbd4e950654802f01c584 (diff)
downloadhome-f2fb01a55b54dae9a5c26c7e1bae3d17c18de73e.tar.gz
repo: format tree
Diffstat (limited to 'nixos/yubikey.nix')
-rw-r--r--nixos/yubikey.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/nixos/yubikey.nix b/nixos/yubikey.nix
index 868913a..ce3d5d3 100644
--- a/nixos/yubikey.nix
+++ b/nixos/yubikey.nix
@@ -1,4 +1,9 @@
-{ config, lib, pkgs, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
let
cfg = config.nixos.yubikey;
inherit (lib) types mkOption;
@@ -15,10 +20,10 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
- yubioath-flutter
- yubikey-manager
- pam_u2f
- ;
+ yubioath-flutter
+ yubikey-manager
+ pam_u2f
+ ;
};
programs.yubikey-touch-detector = {
@@ -37,10 +42,12 @@ in
# interactive = true;
interactive = false;
cue = true;
- authfile = pkgs.writeText "u2f-mappings" (lib.concatStrings [
- config.nixos.username
- ":GB+R91Ur898D/fEgih7f/tsSDOaDw1QcEOSGzHs4fOUo5uCaliIiEK4fFGDClybL/8Qa7tGAN+mo0tU7PVmzfA==,GUPJuYykJoqBw7atGbIK/QcIATgJ3VZQKd1BrjMZ9g/f3nSejOv69LM5UCEoXAwuZHyJitVr1qYd1jLP2uckoQ==,es256,+presence"
- ]);
+ authfile = pkgs.writeText "u2f-mappings" (
+ lib.concatStrings [
+ config.nixos.username
+ ":GB+R91Ur898D/fEgih7f/tsSDOaDw1QcEOSGzHs4fOUo5uCaliIiEK4fFGDClybL/8Qa7tGAN+mo0tU7PVmzfA==,GUPJuYykJoqBw7atGbIK/QcIATgJ3VZQKd1BrjMZ9g/f3nSejOv69LM5UCEoXAwuZHyJitVr1qYd1jLP2uckoQ==,es256,+presence"
+ ]
+ );
};
};
services = {