diff --git a/nixos/hosts/nixos-framework/disks.nix b/nixos/hosts/nixos-framework/disks.nix index c3ed2668..e076980a 100644 --- a/nixos/hosts/nixos-framework/disks.nix +++ b/nixos/hosts/nixos-framework/disks.nix @@ -3,6 +3,7 @@ services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly"; + boot.initrd.secrets disko.devices.disk.nvme0 = { device = "/dev/nvme0n1"; @@ -63,27 +64,15 @@ mountpoint = "/nix/.snapshots"; mountOptions = [ "compress=zstd" "noatime" ]; }; # nix + # Swap partition + "/swap" = { + mountpoint = "/swap"; + swap.swapfile.size = "64G"; + }; # swap }; # subvolumes }; # content.content }; # content } # partition 2 (/ BTRFS) - { - name = "LUKS-SWAP"; - start = "-64GiB"; - end = "100%"; - content = { - type = "luks"; - name = "SWAP"; - settings = { - allowDiscards = true; - keyFile = "/mnt-root/etc/swap.key"; - }; # content - content = { - type = "swap"; - resumeDevice = true; # Hibernation - }; # content.ontent - };# content - } # partition 3 (SWAP) ]; # partitions }; # content }; # disko.devices.disk.nvme0