From 5eb6987d6c5356006d10ffaaac15b38bca294f35 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Mon, 26 Aug 2024 18:11:59 +0200 Subject: [PATCH] Auto create blank snapshot using disko --- hosts/nixos/calypso/filesystems/partitions.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/hosts/nixos/calypso/filesystems/partitions.nix b/hosts/nixos/calypso/filesystems/partitions.nix index 2430910..fe1d6ed 100644 --- a/hosts/nixos/calypso/filesystems/partitions.nix +++ b/hosts/nixos/calypso/filesystems/partitions.nix @@ -33,14 +33,10 @@ type = "btrfs"; extraArgs = [ "-f" ]; - # TODO: how do we do this properly??? - postCreateHook = '' - # We then take an empty *readonly* snapshot of the root subvolume, - # which we'll eventually rollback to on every boot. - # btrfs subvolume snapshot -r /root /blank - ''; - subvolumes = { + # {{{ /blank + "/blank" = { }; + # }}} # {{{ /root "/root" = { mountpoint = "/";