From d2f2de4accd296f51abaacdae55e9db8d3587fd1 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Nov 2026 12:56:45 +0000 Subject: systemd-credentials: drop let { body } --- modules/systemd-credentials.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') 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; -- cgit v1.3.1