configured snapper

This commit is contained in:
Rouven Seifert 2023-02-16 22:25:26 +01:00
parent 2751a9750c
commit 9a8e3bd12d
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 34 additions and 0 deletions

View file

@ -6,6 +6,7 @@
[
./hardware-configuration.nix
./modules/networks
./modules/snapper
../../shared/vim.nix
../../shared/sops.nix
../../shared/gpg.nix

View file

@ -0,0 +1,32 @@
{ config, ... }:
{
services.snapper = {
snapshotRootOnBoot = true;
configs = {
root = {
subvolume = "/";
extraConfig = ''
ALLOW_USERS="rouven"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
'';
};
home = {
subvolume = "/home";
extraConfig = ''
ALLOW_USERS="rouven"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
'';
};
lib = {
subvolume = "/var/lib";
extraConfig = ''
ALLOW_USERS="rouven"
TIMELINE_CREATE=yes
TIMELINE_CLEANUP=yes
'';
};
};
};
}

View file

@ -5,6 +5,7 @@
wpa_supplicant_gui
pcmanfm
xdg-utils
snapper-gui
# graphics
evince