diff --git a/nixos/hosts/nixos-framework/disks.nix b/nixos/hosts/nixos-framework/disks.nix index 1db51fcd..3f4e531c 100644 --- a/nixos/hosts/nixos-framework/disks.nix +++ b/nixos/hosts/nixos-framework/disks.nix @@ -1,9 +1,15 @@ { + + imports = [ ../../common/services/snapper.nix ]; services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.interval = "weekly"; + boot.resumeDevice = "/dev/disk/by-partlabel/ROOT"; + # boot.kernelParams = [ "resume_offset=[offset]" ]; + # https://sawyershepherd.org/post/hibernating-to-an-encrypted-swapfile-on-btrfs-with-nixos/ + disko.devices.disk.nvme0 = { device = "/dev/nvme0n1"; content = { @@ -32,7 +38,6 @@ content = { type = "luks"; name = "ROOT"; - settings.preLVM = true; extraOpenArgs = [ "--allow-discards" ]; content = { type = "btrfs";