!JQvnJacrwKgtkGHYHO:matrix.org

NixOS + Framework

235 Members
Discussing NixOS in the context of the Framework laptop53 Servers

Load older messages


SenderMessageTime
10 May 2026
@albertlarsan68:albertlarsan.frAlbert LarsanThe modern version does properly save nested submodules16:53:46
@sudoforge:matrix.orgsudoforgegot it16:55:18
@sudoforge:matrix.orgsudoforgei don't care about preserving the root subvol. that's the whole point of impermanence, after all :)16:55:42
@sudoforge:matrix.orgsudoforge
        btrfs subvolume delete /mnt/root

        btrfs subvolume snapshot /mnt/root-blank /mnt/root

this snippet is from the systemd unit that runs in initrd before sysroot, and just unconditionally deletes the subvol and restores it from the blank snapshot (this is taken at disk formatting time; the above disko config handles this with a postCreateHook)

16:58:38
@albertlarsan68:albertlarsan.frAlbert LarsanSaving the old snapshot saved me more than once, when my computer crashed, I could mount the old snapshot and recover some files that way.17:07:27
@albertlarsan68:albertlarsan.frAlbert LarsanThat is why I only keep the latest boot on old version and the last 1 day of boots for the modern version.17:09:33
@sudoforge:matrix.orgsudoforgemakes sense17:11:03
@rajil:rajils.comtrumee sudoforge: how do you specify the swapfile for resume? 17:29:05
@sudoforge:matrix.orgsudoforgehttps://search.nixos.org/options?channel=unstable&query=resumeDevice#show=option%253Aboot.resumeDevice17:30:20
@sudoforge:matrix.orgsudoforge

see also:

  • https://search.nixos.org/options?channel=unstable&query=postResume#show=option%253Aboot.initrd.postResumeCommands
  • https://search.nixos.org/options?channel=unstable&query=postDevice#show=option%253Aboot.initrd.postDeviceCommands
17:32:42
@rajil:rajils.comtrumeeFor a file offset is needed it seems.17:39:13
@sudoforge:matrix.orgsudoforgeyes17:42:54
@albertlarsan68:albertlarsan.frAlbert LarsanAlso why I don’t bother with swapfiles, only a swap partition17:43:49
@albertlarsan68:albertlarsan.frAlbert LarsanDon’t have to find the offset (and make sure btrfs doesn’t break the file)17:44:14
@sudoforge:matrix.orgsudoforgefor sure, a swap partition is simpler17:44:18
@sudoforge:matrix.orgsudoforge trumee since you seem newer to all of this i'm going to recommend that you use a swap partition 17:44:39
@sudoforge:matrix.orgsudoforgemake it a little bigger than the RAM you have on the machine (or the RAM you plan to have on the machine)17:50:56
@sudoforge:matrix.orgsudoforgei guess, this is where the lvm-under-luks-before-your-fs comes into play17:51:13
@albertlarsan68:albertlarsan.frAlbert LarsanYou can only have a single hibernation swap, so add your ram and all other swap (including zram if you use that), add a little overhead, and you end up with 64GB of swap for 24 GB of RAM :)17:53:07
@sudoforge:matrix.orgsudoforgei have 64GiB of RAM (i bought it before the rampocalypse, don't hurt me) and haven't ran into issues with 72GiB17:55:19
@sudoforge:matrix.orgsudoforgebut yeah17:55:20
@albertlarsan68:albertlarsan.frAlbert LarsanGood for you, I really want to steal a 16G stick from another one of my laptops.17:56:31
@albertlarsan68:albertlarsan.frAlbert LarsanI only need like 16 on it (for The Sims 3)17:56:57
@sudoforge:matrix.orgsudoforgei do have 2x16GB SODIMM i have been puzzled about what i'd use it for17:58:56
@sudoforge:matrix.orgsudoforgeso, i mean17:59:13
@sudoforge:matrix.orgsudoforgei'd sell it if you need it. at a reasonable price (1 or two bitcoins)17:59:33
@sudoforge:matrix.orgsudoforge* i'd sell it if you need it. at a reasonable price (1 or 2 bitcoins)17:59:40
@albertlarsan68:albertlarsan.frAlbert LarsanDDR5 5600?18:00:46
@sudoforge:matrix.orgsudoforgeyep18:00:53
@albertlarsan68:albertlarsan.frAlbert LarsanMy FW runs at 4800 because the only stick of DDR5 I had available was a 8G DDR5 4800 from said other laptop from when I upgraded it to 32 GB of RAM18:02:03

Show newer messages


Back to Room ListRoom Version: 10