diff --git a/nixos/machines/chungus/disko-syncoid.nix b/nixos/machines/chungus/disko-syncoid.nix index dca1ab1..3f9edd7 100644 --- a/nixos/machines/chungus/disko-syncoid.nix +++ b/nixos/machines/chungus/disko-syncoid.nix @@ -4,9 +4,18 @@ enable = true; commands.service2 = { source = "zroot/services2"; - target = "zraid/mirror/services2"; + target = "zraid/mirror/services2"; # needs to be created but not named in disko-config.nix + }; + commands.paperless = { + source = "zroot/paperless"; + target = "zraid/mirror/paperless"; # needs to be created but not named in disko-config.nix + }; + commands.postgresql = { + source = "zroot/postgresql"; + target = "zraid/mirror/postgresql"; # needs to be created but not named in disko-config.nix }; commonArgs = [ + # Does not create new snapshot, only transfers existing "--no-sync-snap" ]; }; diff --git a/nixos/machines/chungus/hardware-configuration/disko-config.nix b/nixos/machines/chungus/hardware-configuration/disko-config.nix index e54e6ea..423f25d 100644 --- a/nixos/machines/chungus/hardware-configuration/disko-config.nix +++ b/nixos/machines/chungus/hardware-configuration/disko-config.nix @@ -105,6 +105,24 @@ in "com.sun:auto-snapshot:daily" = toString true; }; }; + "paperless" = { + type = "zfs_fs"; + mountpoint = "/var/lib/paperless"; + options = { + mountpoint = "legacy"; + compression = "lz4"; + "com.sun:auto-snapshot:daily" = toString true; + }; + }; + "postgresql" = { + type = "zfs_fs"; + mountpoint = "/var/lib/postgresql"; + options = { + mountpoint = "legacy"; + compression = "lz4"; + "com.sun:auto-snapshot:daily" = toString true; + }; + }; }; };