diff --git a/hosts/thinkpad/default.nix b/hosts/thinkpad/default.nix index a1770e0..895fa1c 100755 --- a/hosts/thinkpad/default.nix +++ b/hosts/thinkpad/default.nix @@ -6,6 +6,7 @@ [ ./hardware-configuration.nix ./modules/networks + ./modules/snapper ../../shared/vim.nix ../../shared/sops.nix ../../shared/gpg.nix diff --git a/hosts/thinkpad/modules/snapper/default.nix b/hosts/thinkpad/modules/snapper/default.nix new file mode 100644 index 0000000..14c1e18 --- /dev/null +++ b/hosts/thinkpad/modules/snapper/default.nix @@ -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 + ''; + }; + }; + }; +} diff --git a/users/rouven/modules/packages.nix b/users/rouven/modules/packages.nix index 3479c22..0957d1d 100644 --- a/users/rouven/modules/packages.nix +++ b/users/rouven/modules/packages.nix @@ -5,6 +5,7 @@ wpa_supplicant_gui pcmanfm xdg-utils + snapper-gui # graphics evince