Add ZFS automatic snapshot solution
This commit is contained in:
parent
fabf20e303
commit
0480304036
|
@ -69,6 +69,7 @@
|
|||
./modules/software.nix
|
||||
./modules/networking.nix
|
||||
./modules/gui.nix
|
||||
./modules/datasync.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# ZFS automatic backup solution
|
||||
services.znapzend = {
|
||||
enable = true;
|
||||
autoCreation = true;
|
||||
features = {
|
||||
compressed = true;
|
||||
recvu = true;
|
||||
};
|
||||
zetup = {
|
||||
"syscea/state/root" = {
|
||||
plan = "1d=>1h,1m=>1d,1y=>1m";
|
||||
recursive = true;
|
||||
mbuffer = true;
|
||||
destinations.remote = {
|
||||
host = "coolneng@zion";
|
||||
dataset = "syscea/root";
|
||||
};
|
||||
};
|
||||
"syscea/state/home" = {
|
||||
plan = "1d=>1h,1m=>1d,1y=>1m";
|
||||
recursive = true;
|
||||
mbuffer = true;
|
||||
destinations.remote = {
|
||||
host = "coolneng@zion";
|
||||
dataset = "syscea/home";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -2,20 +2,20 @@
|
|||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Developement
|
||||
git lorri
|
||||
# Development
|
||||
git direnv lorri
|
||||
# Monitoring
|
||||
htop
|
||||
# Text editors
|
||||
neovim emacs
|
||||
# Terminal multiplexing
|
||||
tmux tmuxp
|
||||
# Terminals
|
||||
kitty tmux tmuxp
|
||||
# Password management
|
||||
pass passff-host
|
||||
pass-wayland passff-host gitAndTools.pass-git-helper
|
||||
# Browsers
|
||||
firefox chromium
|
||||
# LaTeX
|
||||
tectonic pandoc
|
||||
texlive.combind.scheme-full pandoc pandoc-citeproc
|
||||
];
|
||||
|
||||
# Fonts declaration
|
||||
|
@ -24,6 +24,8 @@
|
|||
google-fonts
|
||||
siji
|
||||
cherry
|
||||
iosevka
|
||||
emacs.all-the-icons-fonts
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue