btrfs
This commit is contained in:
parent
3d4c7bcf8e
commit
f5fc3fbeda
3 changed files with 14 additions and 2 deletions
|
|
@ -23,7 +23,7 @@
|
||||||
}
|
}
|
||||||
./system
|
./system
|
||||||
./system/gnome.nix
|
./system/gnome.nix
|
||||||
# ./system/xfce.nix
|
./system/btrbk.nix
|
||||||
./system/hardware-nova.nix
|
./system/hardware-nova.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
url = "ssh://git@ktiu.net/home/git/lectuR/";
|
url = "ssh://git@ktiu.net/home/git/lectuR/";
|
||||||
ref = "main";
|
ref = "main";
|
||||||
rev = "41c477a734c238db53b9ed2fe1e8d28117ffe59e";
|
rev = "0aafe4eb057a7ec12b8d6ac40ce0bfc8dab80c2b";
|
||||||
};
|
};
|
||||||
propagatedBuildInputs = [ purrr magrittr knitr kableExtra tidyr stringr yaml ];
|
propagatedBuildInputs = [ purrr magrittr knitr kableExtra tidyr stringr yaml ];
|
||||||
nativeBuildInputs = [ purrr magrittr knitr kableExtra tidyr stringr yaml ];
|
nativeBuildInputs = [ purrr magrittr knitr kableExtra tidyr stringr yaml ];
|
||||||
|
|
|
||||||
12
system/btrbk.nix
Normal file
12
system/btrbk.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.btrbk.instances.btrbk = {
|
||||||
|
settings = {
|
||||||
|
snapshot_preserve = "14d";
|
||||||
|
snapshot_preserve_min = "2d";
|
||||||
|
snapshot_dir = "/btrbk_snapshots";
|
||||||
|
subvolume = "/home";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue