up and running again
This commit is contained in:
parent
16696e66cd
commit
903488fa21
9 changed files with 76 additions and 48 deletions
31
modules/system/btrfs-conf.nix
Normal file
31
modules/system/btrfs-conf.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
btrfs = {
|
||||
autoScrub = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
btrbk = {
|
||||
instances."home" = {
|
||||
onCalendar = "hourly";
|
||||
settings = {
|
||||
timestamp_format = "long";
|
||||
snapshot_preserve_min = "18h";
|
||||
snapshot_preserve = "48h";
|
||||
volume = {
|
||||
"/" = {
|
||||
snapshot_dir = "/.snapshots";
|
||||
subvolume = "/home";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /.snapshots 0755 root root"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue