added zrepl config as conditional and moved system package include
This commit is contained in:
@@ -27,7 +27,9 @@
|
|||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./docker-device-mapper.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.
|
# Use the systemd-boot EFI boot loader and enable that sweet zfs stuff.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{...}:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.zrepl = {
|
services.zrepl = {
|
||||||
|
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
jobs = [{
|
jobs = [{
|
||||||
type = "source";
|
type = "source";
|
||||||
name = "siredward_pull";
|
name = "pullsource";
|
||||||
send = {
|
send = {
|
||||||
encrypted = true;
|
encrypted = true;
|
||||||
};
|
};
|
||||||
@@ -34,4 +34,6 @@
|
|||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.zrepl ];
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user