From d062f803346de3b915b55b5c6f2a31cfbea6d7ad Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Tue, 4 Feb 2025 11:16:03 +0500 Subject: [PATCH] feat: NixOS | add LUKS settings for disko and update hardware config --- nixos/disko-config.nix | 7 +++++++ nixos/hardware-configuration.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/disko-config.nix b/nixos/disko-config.nix index ffb18fc..b942f56 100644 --- a/nixos/disko-config.nix +++ b/nixos/disko-config.nix @@ -25,6 +25,13 @@ name = "crypted"; type = "luks"; askPassword = true; + settings = { + allowDiscards = true; + crypttabExtraOpts = [ + "fido2-device=auto" + "token-timeout=10" + ]; + }; content = { type = "btrfs"; extraArgs = ["-L" "nixos" "-f"]; diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index 2db6444..fcba692 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -8,7 +8,7 @@ boot = { initrd = { - availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; + availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "thunderbolt" "usb_storage" "sd_mod" ]; kernelModules = [ ]; };