From 86a567164d6ffa620e88832fe34e62219ded9abb Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Thu, 6 Feb 2025 16:47:20 +0500 Subject: [PATCH] fix: Disko | read luks key from file + remove home subvol --- nixos/disko-config.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/disko-config.nix b/nixos/disko-config.nix index b942f56..a7976c7 100644 --- a/nixos/disko-config.nix +++ b/nixos/disko-config.nix @@ -24,9 +24,9 @@ content = { name = "crypted"; type = "luks"; - askPassword = true; settings = { allowDiscards = true; + keyFile = "/tmp/secret.key"; crypttabExtraOpts = [ "fido2-device=auto" "token-timeout=10" @@ -40,10 +40,6 @@ mountpoint = "/"; mountOptions = ["subvol=root" "compress=zstd" "noatime"]; }; - "/home" = { - mountpoint = "/home"; - mountOptions = ["subvol=home" "compress=zstd" "noatime"]; - }; "/nix" = { mountpoint = "/nix"; mountOptions = ["subvol=nix" "compress=zstd" "noatime"];