From bab0f4646c4c4976351aba86d28712f4bbd903bf Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 7 Jun 2026 21:31:29 +0200 Subject: workstation: add fido2 as decrypt option --- common/home/hyprland/default.nix | 2 +- hosts/workstation/hardware.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/home/hyprland/default.nix b/common/home/hyprland/default.nix index 9ddb9bd..9aca556 100644 --- a/common/home/hyprland/default.nix +++ b/common/home/hyprland/default.nix @@ -16,7 +16,7 @@ in _var = "SUPER"; }; bind = [ - (hl.bind { mod = true; keys = [ "Q" ]; flags = { long_press = true; locked = true; }; } (hl.dsp.exec "shutdown")) + (hl.bind { mod = true; keys = [ "q" ]; flags = { long_press = true; locked = true; }; } (hl.dsp.exec "shutdown")) (hl.bind { mod = true; keys = [ "h" ]; } (hl.dsp.focus { direction = "left"; })) (hl.bind { mod = true; keys = [ "j" ]; } (hl.dsp.focus { direction = "down"; })) diff --git a/hosts/workstation/hardware.nix b/hosts/workstation/hardware.nix index 2f91bf3..f269582 100644 --- a/hosts/workstation/hardware.nix +++ b/hosts/workstation/hardware.nix @@ -45,8 +45,11 @@ modulesPath, fsType = "btrfs"; }; + + boot.initrd.systemd.fido2.enable = true; boot.initrd.luks.devices."root" = { device = "/dev/disk/by-uuid/df2e1c34-093a-4678-9665-8c96ca42b1a2"; + fido2.credential = "d7781e5de35346aaafe23ca49f13332a"; }; fileSystems."/boot" = { -- cgit v1.2.3-70-g09d2