random test
This commit is contained in:
parent
03def204c7
commit
700bca41c3
8 changed files with 254 additions and 51 deletions
27
modules/networking/ddclient.nix
Normal file
27
modules/networking/ddclient.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.networking.ddclient;
|
||||
in
|
||||
{
|
||||
options.my.networking.ddclient = {
|
||||
enable = lib.mkEnableOption "Enable DDClient dynamic DNS client";
|
||||
configFile = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
default = "/etc/ddclient/ddclient.conf";
|
||||
description = "Path to the ddclient configuration file (use agenix path)";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.ddclient = {
|
||||
enable = true;
|
||||
configFile = cfg.configFile;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue