summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/systemd-credentials.nix8
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;