diff options
| author | tv <tv@krebsco.de> | 2026-11-18 12:56:45 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-18 14:17:32 +0100 |
| commit | d2f2de4accd296f51abaacdae55e9db8d3587fd1 (patch) | |
| tree | 9ac06572a13a469810d8e9705fa6892fd83ad62b | |
| parent | be1ac1a3a611a53d4cc94f6ec0a7b9e1b3c6f48b (diff) | |
systemd-credentials: drop let { body }
| -rw-r--r-- | modules/systemd-credentials.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/systemd-credentials.nix b/modules/systemd-credentials.nix index 3ccc452..5e3bfe9 100644 --- a/modules/systemd-credentials.nix +++ b/modules/systemd-credentials.nix @@ -1,11 +1,11 @@ -{ config, pkgs, lib, mylib, ... }: let { +{ config, pkgs, lib, mylib, ... }: { # stockholm's tinc, repo-sync, and exim-smarthost still use the old name. - body.imports = [ + imports = [ (lib.mkAliasOptionModule [ "krebs" "systemd" "services" ] [ "hrm" "systemd" "services" ]) ]; - body.options.hrm.systemd.services = lib.mkOption { + options.hrm.systemd.services = lib.mkOption { default = {}; type = lib.types.attrsOf (lib.types.submodule (cfg_: let serviceName = cfg_.config._module.args.name; @@ -40,7 +40,7 @@ })); }; - body.config.systemd = lib.mkMerge (lib.mapAttrsToList (serviceName: cfg: { + config.systemd = lib.mkMerge (lib.mapAttrsToList (serviceName: cfg: { paths.${cfg.credentialUnitName} = { wantedBy = [ "multi-user.target" ]; pathConfig.PathChanged = cfg.credentialPaths; |
