mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 12:19:12 +00:00
chore: reformat codebase
This commit is contained in:
parent
654f531b8d
commit
c3bec31b86
@ -75,7 +75,8 @@ in
|
|||||||
|
|
||||||
(lib.mkIf config.systemd.network.enable {
|
(lib.mkIf config.systemd.network.enable {
|
||||||
# Just apply the appropriate permissions for systemd-networkd.
|
# Just apply the appropriate permissions for systemd-networkd.
|
||||||
sops.secrets = let
|
sops.secrets =
|
||||||
|
let
|
||||||
systemdNetworkFileAttrs = {
|
systemdNetworkFileAttrs = {
|
||||||
group = config.users.users.systemd-network.group;
|
group = config.users.users.systemd-network.group;
|
||||||
reloadUnits = [ "systemd-networkd.service" ];
|
reloadUnits = [ "systemd-networkd.service" ];
|
||||||
|
@ -187,7 +187,8 @@ in
|
|||||||
domainZone' = zoneFile domain;
|
domainZone' = zoneFile domain;
|
||||||
fqdnZone' = zoneFile fqdn;
|
fqdnZone' = zoneFile fqdn;
|
||||||
secretPath = path: config.sops.secrets."dns/${path}".path;
|
secretPath = path: config.sops.secrets."dns/${path}".path;
|
||||||
in lib.mkAfter ''
|
in
|
||||||
|
lib.mkAfter ''
|
||||||
[ -f '${domainZone'}' ] || {
|
[ -f '${domainZone'}' ] || {
|
||||||
install -Dm0600 '${domainZone}' '${domainZone'}'
|
install -Dm0600 '${domainZone}' '${domainZone'}'
|
||||||
replace-secret #mailboxSecurityKey# '${secretPath "${domain}/mailbox-security-key"}' '${domainZone'}'
|
replace-secret #mailboxSecurityKey# '${secretPath "${domain}/mailbox-security-key"}' '${domainZone'}'
|
||||||
|
@ -31,8 +31,10 @@ rec {
|
|||||||
let
|
let
|
||||||
getKey = key: { inherit key sopsFile; };
|
getKey = key: { inherit key sopsFile; };
|
||||||
in
|
in
|
||||||
lib.mapAttrs (path: attrs:
|
lib.mapAttrs
|
||||||
(getKey path) // attrs) secrets;
|
(path: attrs:
|
||||||
|
(getKey path) // attrs)
|
||||||
|
secrets;
|
||||||
|
|
||||||
attachSopsPathPrefix = prefix: secrets:
|
attachSopsPathPrefix = prefix: secrets:
|
||||||
lib.mapAttrs'
|
lib.mapAttrs'
|
||||||
|
@ -33,7 +33,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
perIdentitySettings = id:
|
perIdentitySettings = id:
|
||||||
let
|
let
|
||||||
identitySettings = attrs: lib.mapAttrs' (setting: value:
|
identitySettings = attrs: lib.mapAttrs'
|
||||||
|
(setting: value:
|
||||||
lib.nameValuePair "mail.identity.id${id}.${setting}" value)
|
lib.nameValuePair "mail.identity.id${id}.${setting}" value)
|
||||||
attrs;
|
attrs;
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user