chore: reformat codebase

This commit is contained in:
Gabriel Arazas 2023-07-05 16:42:15 +08:00
parent 654f531b8d
commit c3bec31b86
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
5 changed files with 33 additions and 28 deletions

View File

@ -75,7 +75,8 @@ in
(lib.mkIf config.systemd.network.enable {
# Just apply the appropriate permissions for systemd-networkd.
sops.secrets = let
sops.secrets =
let
systemdNetworkFileAttrs = {
group = config.users.users.systemd-network.group;
reloadUnits = [ "systemd-networkd.service" ];

View File

@ -187,7 +187,8 @@ in
domainZone' = zoneFile domain;
fqdnZone' = zoneFile fqdn;
secretPath = path: config.sops.secrets."dns/${path}".path;
in lib.mkAfter ''
in
lib.mkAfter ''
[ -f '${domainZone'}' ] || {
install -Dm0600 '${domainZone}' '${domainZone'}'
replace-secret #mailboxSecurityKey# '${secretPath "${domain}/mailbox-security-key"}' '${domainZone'}'

View File

@ -31,8 +31,10 @@ rec {
let
getKey = key: { inherit key sopsFile; };
in
lib.mapAttrs (path: attrs:
(getKey path) // attrs) secrets;
lib.mapAttrs
(path: attrs:
(getKey path) // attrs)
secrets;
attachSopsPathPrefix = prefix: secrets:
lib.mapAttrs'

View File

@ -33,7 +33,8 @@
enable = true;
perIdentitySettings = id:
let
identitySettings = attrs: lib.mapAttrs' (setting: value:
identitySettings = attrs: lib.mapAttrs'
(setting: value:
lib.nameValuePair "mail.identity.id${id}.${setting}" value)
attrs;
in