mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
configured snapper
This commit is contained in:
parent
2751a9750c
commit
9a8e3bd12d
3 changed files with 34 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
[
|
||||
./hardware-configuration.nix
|
||||
./modules/networks
|
||||
./modules/snapper
|
||||
../../shared/vim.nix
|
||||
../../shared/sops.nix
|
||||
../../shared/gpg.nix
|
||||
|
|
32
hosts/thinkpad/modules/snapper/default.nix
Normal file
32
hosts/thinkpad/modules/snapper/default.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
wpa_supplicant_gui
|
||||
pcmanfm
|
||||
xdg-utils
|
||||
snapper-gui
|
||||
|
||||
# graphics
|
||||
evince
|
||||
|
|
Loading…
Reference in a new issue