Simplify system and home options
This commit is contained in:
parent
ac22bc1849
commit
72ec65064d
20 changed files with 59 additions and 79 deletions
|
@ -1,14 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
services.ddclient = {
|
||||
enable = config.system.server.enable;
|
||||
protocol = "cloudflare";
|
||||
zone = "${config.domains.p2}";
|
||||
usev6 = "";
|
||||
username = "token";
|
||||
passwordFile = "${pkgs.writeText "cloudflareapikey" config.secrets.flareApiKey}";
|
||||
};
|
||||
environment.persistence."/persist".directories = lib.mkIf config.services.ddclient.enable [
|
||||
"/var/lib/private/ddclient"
|
||||
];
|
||||
}
|
|
@ -1,8 +1,9 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.system.webserver.enable = lib.mkEnableOption "Enable nginx related services";
|
||||
|
||||
imports = [
|
||||
./acme
|
||||
./ddclient
|
||||
./nginx
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue