|
|
@@ -1,8 +1,7 @@
|
|
|
-{
|
|
|
- config,
|
|
|
- inputs,
|
|
|
- lib,
|
|
|
- ...
|
|
|
+{ config
|
|
|
+, inputs
|
|
|
+, lib
|
|
|
+, ...
|
|
|
}:
|
|
|
{
|
|
|
imports = [
|
|
|
@@ -57,7 +56,7 @@
|
|
|
|
|
|
# Create or restore fresh root
|
|
|
if [[ -e /mnt/@root-blank ]]; then
|
|
|
- btrfs subvolume delete /mnt/@root || true
|
|
|
+ delete_subvolume_recursively /mnt/@root
|
|
|
if ! btrfs subvolume snapshot /mnt/@root-blank /mnt/@root; then
|
|
|
echo "Failed to snapshot @root-blank to @root"
|
|
|
umount /mnt
|