1
Fork 0

Auto create blank snapshot using disko

This commit is contained in:
prescientmoon 2024-08-26 18:11:59 +02:00
parent 070a6774ec
commit 5eb6987d6c
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4

View file

@ -33,14 +33,10 @@
type = "btrfs"; type = "btrfs";
extraArgs = [ "-f" ]; 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 = { subvolumes = {
# {{{ /blank
"/blank" = { };
# }}}
# {{{ /root # {{{ /root
"/root" = { "/root" = {
mountpoint = "/"; mountpoint = "/";