mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 08:50:42 +00:00
Rework (and fix) impermanence
This commit is contained in:
parent
326313666f
commit
3b75c09b95
5 changed files with 112 additions and 92 deletions
|
@ -23,16 +23,18 @@
|
|||
hostname = "herugrim";
|
||||
username = "itsdrike";
|
||||
|
||||
impermanence.root = {
|
||||
enable = true;
|
||||
# Some people use /nix/persist/system for this, leaving persistent files in /nix subvolume
|
||||
# I much prefer using a standalone subvolume for this though.
|
||||
persistentMountPoint = "/persist";
|
||||
impermanence = {
|
||||
root = {
|
||||
enable = true;
|
||||
# Some people use /nix/persist/system for this, leaving persistent files in /nix subvolume
|
||||
# I much prefer using a standalone subvolume for this though.
|
||||
persistentMountPoint = "/persist";
|
||||
};
|
||||
|
||||
# Configure automatic root subvolume wiping on boot from initrd
|
||||
autoBtrfsWipe = {
|
||||
devicePath = "/dev/disk/by-label/NIXROOT";
|
||||
subvolumePath = "root";
|
||||
cleanSnapshotPath = "root-blank";
|
||||
autoWipeBtrfs = {
|
||||
enable = true;
|
||||
devices."/dev/disk/by-label/NIXROOT".subvolumes = [ "root" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue