-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(modules/nixos/services/btrbk)!: move '/nix/btrbk' to '/btrbk'
Move the '/nix/btrbk' directory to the '/btrbk' Btrfs subvolume because Btrbk has nothing to do with '/nix'. Initially, '/nix/btrbk' was used because everything within '/nix' already persisted across reboots without any additional efforts. BREAKING CHANGE: The Btrbk snapshot directory has moved from the '/nix/btrbk' directory to the '/btrbk' Btrfs subvolume. To create the new '/btrbk' subvolume, run the following script: #!/usr/bin/env bash MNTPOINT=$(mktemp -d) mount /dev/mapper/luks "$MNTPOINT" -o subvol=/ trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT SUBVOL_ABS_PATH="$MNTPOINT//btrbk" mkdir -p "$(dirname "$SUBVOL_ABS_PATH")" btrfs subvolume create "$SUBVOL_ABS_PATH" This script is an extract from the script generated by the following command: nix \ run \ github:nix-community/disko \ -- \ --dry-run \ --mode format \ hosts/masterplan/disko.nix
- Loading branch information
Showing
5 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters