blob: e88ec88b80df4601ca580e8042c95e2126b0d8cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ config, lib, pkgs, ... }:
{
services.kea.dhcp4 = {
configFile = config.sops.secrets.kea-dhcp4_conf.path;
enable = true;
};
systemd.services.kea-dhcp4-server = {
serviceConfig = {
ExecStart = lib.mkForce ''
${pkgs.kea}/bin/kea-dhcp4 -c ''${CREDENTIALS_DIRECTORY}/kea-dhcp4_conf
'';
LoadCredential = [ "kea-dhcp4_conf:${config.sops.secrets.kea-dhcp4_conf.path}" ];
};
};
}
|