hosts: move from snapper to btrbk fix
This commit is contained in:
parent
c9544ceabf
commit
1df6cd6763
@ -52,17 +52,16 @@
|
|||||||
instances = {
|
instances = {
|
||||||
hf = {
|
hf = {
|
||||||
settings = {
|
settings = {
|
||||||
incremental = yes;
|
incremental = "yes";
|
||||||
snapshot_create = "ondemand";
|
snapshot_create = "ondemand";
|
||||||
snapshot_dir = "/mnt/snapshots";
|
snapshot_dir = "@snapshots";
|
||||||
|
|
||||||
snapshot_preserve = "2m 2w 5d 5h";
|
snapshot_preserve = "2m 2w 5d 5h";
|
||||||
snapshot_preserve_min = "latest";
|
snapshot_preserve_min = "latest";
|
||||||
|
|
||||||
onCalender = "hourly";
|
onCalender = "hourly";
|
||||||
volume = {
|
volume = {
|
||||||
"/" = {
|
"/mnt/snapshots/root" = {
|
||||||
snapshot_dir = /mnt/snapshots/root;
|
|
||||||
snapshot_create = "always";
|
snapshot_create = "always";
|
||||||
subvolume = "@home";
|
subvolume = "@home";
|
||||||
};
|
};
|
||||||
@ -100,7 +99,7 @@
|
|||||||
fileSystems."/mnt/snapshots/root" =
|
fileSystems."/mnt/snapshots/root" =
|
||||||
{ device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@snapshots,discard=async" ];
|
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/snapshots/Mars" =
|
fileSystems."/mnt/snapshots/Mars" =
|
||||||
|
Loading…
Reference in New Issue
Block a user