From 146ad0d8b329ec591a00fd131d92dee13e2eacfc Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Fri, 1 May 2026 19:30:27 -0300 Subject: [PATCH] feat(dreadnought): add hdd disk configuration --- hosts/battleship/disko.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/hosts/battleship/disko.nix b/hosts/battleship/disko.nix index 85efe28..ffe7cd3 100644 --- a/hosts/battleship/disko.nix +++ b/hosts/battleship/disko.nix @@ -64,6 +64,32 @@ }; }; }; + disk.storage = { + type = "disk"; + device = "/dev/sda"; + content = { + type = "gpt"; + partitions.luks = { + size = "100%"; + label = "luks"; + content = { + type = "luks"; + name = "cryptstorage"; + extraOpenArgs = [ + "--allow-discards" + "--perf-no_read_workqueue" + "--perf-no_write_workqueue" + ]; + settings = {crypttabExtraOpts = ["fido2-device=auto" "token-timeout=10"];}; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; }; fileSystems."/persist".neededForBoot = true;