diff --git a/flake.nix b/flake.nix index 5562b16..4b3c089 100644 --- a/flake.nix +++ b/flake.nix @@ -114,6 +114,13 @@ source = "rpool_orm"; target = "rpool_elucredassa/backup/orm"; }; + "kalessin-state" = { + dataset = "state"; + sourceHost = "kalessin"; + targetHost = "elucredassa"; + source = "rpool_kalessin"; + target = "rpool_elucredassa/backup/kalessin"; + }; }; }; diff --git a/hosts/kalessin/default.nix b/hosts/kalessin/default.nix index a26ad8b..473f587 100644 --- a/hosts/kalessin/default.nix +++ b/hosts/kalessin/default.nix @@ -26,5 +26,15 @@ in authorizedKeys.keys = [ ]; }; + randomcat.services.zfs.datasets = { + "rpool_kalessin/state" = { mountpoint = "none"; }; + }; + + services.sanoid.datasets."rpool_kalessin/state" = { + useTemplate = [ "production" ]; + recursive = "zfs"; + process_children_only = true; + }; + system.stateVersion = "23.11"; }