about summary refs log tree commit diff
path: root/modules/nixos/acme.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/acme.nix')
-rw-r--r--modules/nixos/acme.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/nixos/acme.nix b/modules/nixos/acme.nix
deleted file mode 100644
index 6a75818..0000000
--- a/modules/nixos/acme.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{ config, lib, ... }:
-with lib;
-let
-  cfg = config.nixfiles.modules.acme;
-in
-{
-  imports = [
-    (mkAliasOptionModule [ "certs" ] [
-      "security"
-      "acme"
-      "certs"
-    ])
-  ];
-
-  options.nixfiles.modules.acme = {
-    enable = mkEnableOption "ACME";
-
-    email = mkOption {
-      description = "Email for notifications.";
-      type = with types; str;
-      default = "admin+acme@${my.domain.shire}";
-    };
-  };
-
-  config = mkIf cfg.enable {
-    ark.directories = [ "/var/lib/acme" ];
-
-    security.acme = {
-      acceptTerms = true;
-      defaults = {
-        inherit (cfg) email;
-        validMinDays = 60;
-      };
-    };
-  };
-}

Consider giving Nix/NixOS a try! <3