From 235b6aaec6b4306493108d5cc655377fc2aed2d9 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Wed, 22 Jan 2025 16:06:47 +0800 Subject: [PATCH] update some disk config --- nixos/configurations/Tytonidae/disk-config.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/nixos/configurations/Tytonidae/disk-config.nix b/nixos/configurations/Tytonidae/disk-config.nix index 0f3efc8..8f4e7da 100644 --- a/nixos/configurations/Tytonidae/disk-config.nix +++ b/nixos/configurations/Tytonidae/disk-config.nix @@ -31,9 +31,6 @@ settings = { allowDiscards = true; fallbackToPassword = true; - # keyFile = "/dev/disk/by-label/LUKS_DECR"; - # keyFileSize = 512 * 64; - # keyFileOffset = 512 * 192; }; initrdUnlock = true; extraFormatArgs = [ @@ -68,9 +65,6 @@ settings = { allowDiscards = true; fallbackToPassword = true; - # keyFile = "/dev/disk/by-label/LUKS_DECR"; - # keyFileSize = 512 * 64; - # keyFileOffset = 512 * 192; }; initrdUnlock = true; extraFormatArgs = [ @@ -89,7 +83,6 @@ type = "btrfs"; extraArgs = [ "-f" - "-m dup" "-d raid0" "/dev/mapper/crypto1" ]; @@ -116,10 +109,8 @@ ]; }; "@swap" = { - mountpoint = "/swap"; - swap = { - swapfile.size = "32G"; - }; + mountpoint = "/.swapvol"; + swap.swapfile.size = "32G"; }; }; };