From 92fcc3cd4fc50bba1b2b2d95f8bed4e0a5a03136 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 12:24:09 +0200 Subject: lvm snapshots --- odin.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index 437810b0..50fd557a 100644 --- a/odin.nix +++ b/odin.nix @@ -11,6 +11,7 @@ ./users.nix ./custom/uucp.nix ./custom/uucp-mediaserver.nix + ./custom/lvm-snapshots.nix ]; # Use the GRUB 2 boot loader. @@ -147,6 +148,15 @@ networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; }; + services.lvm-snapshots = { + snapshots = { + snapshot-mail = { + LV = "mail"; + VG = "raid6"; + }; + }; + }; + system.autoUpgrade.enable = true; system.stateVersion = "18.09"; -- cgit v1.2.3