nixos/simp_le: Rename to security.acme

Changed files
+11 -11
nixos
modules
+1 -1
nixos/modules/module-list.nix
···
./programs/xfs_quota.nix
./programs/zsh/zsh.nix
./rename.nix
+
./security/acme.nix
./security/apparmor.nix
./security/apparmor-suid.nix
./security/ca.nix
···
./services/security/hologram.nix
./services/security/munge.nix
./services/security/physlock.nix
-
./services/security/simp_le.nix
./services/security/torify.nix
./services/security/tor.nix
./services/security/torsocks.nix
+10 -10
nixos/modules/services/security/simp_le.nix nixos/modules/security/acme.nix
···
let
-
cfg = config.services.simp_le;
+
cfg = config.security.acme;
certOpts = { ... }: {
options = {
···
user = mkOption {
type = types.str;
default = "root";
-
description = "User under which simp_le would run.";
+
description = "User running the ACME client.";
};
group = mkOption {
type = types.str;
default = "root";
-
description = "Group under which simp_le would run.";
+
description = "Group running the ACME client.";
};
postRun = mkOption {
···
###### interface
options = {
-
services.simp_le = {
+
security.acme = {
directory = mkOption {
-
default = "/var/lib/simp_le";
+
default = "/var/lib/acme";
type = types.str;
description = ''
Directory where certs and other state will be stored by default.
···
++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains);
in nameValuePair
-
("simp_le-${cert}")
+
("acme-${cert}")
({
-
description = "simp_le cert renewal for ${cert}";
+
description = "ACME cert renewal for ${cert} using simp_le";
after = [ "network.target" ];
serviceConfig = {
Type = "oneshot";
···
);
systemd.timers = flip mapAttrs' cfg.certs (cert: data: nameValuePair
-
("simp_le-${cert}")
+
("acme-${cert}")
({
-
description = "timer for simp_le cert renewal of ${cert}";
+
description = "timer for ACME cert renewal of ${cert}";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = data.renewInterval;
-
Unit = "simp_le-${cert}.service";
+
Unit = "acme-simp_le-${cert}.service";
};
})
);