add acme option
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
{
|
||||
imports = [
|
||||
### Services ###
|
||||
../services/acme.nix
|
||||
../services/adguard.nix
|
||||
../services/github-runner.nix
|
||||
../services/gitolite.nix
|
||||
@@ -41,6 +40,7 @@
|
||||
settings.enable = true;
|
||||
};
|
||||
services = {
|
||||
acme.enable = true;
|
||||
nginx.enable = true;
|
||||
kavita = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.services.acme;
|
||||
in
|
||||
{
|
||||
options.custom.services.acme = {
|
||||
enable = mkEnableOption "Enables acme";
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "7265381+Kropatz@users.noreply.github.com";
|
||||
acceptTerms = true;
|
||||
defaults.email = "7265381+Kropatz@users.noreply.github.com";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ pkgs, config, ...}:
|
||||
{
|
||||
imports = [
|
||||
./acme.nix
|
||||
./kubernetes.nix
|
||||
./kavita.nix
|
||||
./nginx.nix
|
||||
|
||||
Reference in New Issue
Block a user