added zrepl config as conditional and moved system package include
This commit is contained in:
@@ -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;
|
||||
|
@@ -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 ];
|
||||
}
|
Reference in New Issue
Block a user