mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
configured snapper
This commit is contained in:
parent
2751a9750c
commit
9a8e3bd12d
3 changed files with 34 additions and 0 deletions
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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue