added zrepl config as conditional and moved system package include

This commit is contained in:
2025-07-16 20:30:23 +02:00
parent 72b1bc2031
commit 80d8003e4d
2 changed files with 8 additions and 4 deletions

View File

@@ -27,7 +27,9 @@
./wireguard.nix
./docker.nix
./docker-device-mapper.nix
];
]
++ lib.optionals (config.vars.host_type == "nas") [ ./service-zrepl.nix ]
++ lib.optionals (config.vars.host_type == "worker") [ ./nfs-mount.nix ];
# Use the systemd-boot EFI boot loader and enable that sweet zfs stuff.
boot.loader.systemd-boot.enable = true;

View File

@@ -1,5 +1,5 @@
{...}:
{
{ config, pkgs, ... }:
{
services.zrepl = {
enable = true;
@@ -15,7 +15,7 @@
jobs = [{
type = "source";
name = "siredward_pull";
name = "pullsource";
send = {
encrypted = true;
};
@@ -34,4 +34,6 @@
}];
};
};
environment.systemPackages = [ pkgs.zrepl ];
}