summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-06-07 21:31:29 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-06-07 21:31:29 +0200
commitbab0f4646c4c4976351aba86d28712f4bbd903bf (patch)
treebf07869ec0fc70aef91987b7422dbf312d4c6285
parentc643862bfee0debaf1c5110e732adc8c69cdb203 (diff)
workstation: add fido2 as decrypt optionHEADmaster
-rw-r--r--common/home/hyprland/default.nix2
-rw-r--r--hosts/workstation/hardware.nix3
2 files changed, 4 insertions, 1 deletions
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" = {