Skip to content

Commit

Permalink
Merge pull request #79 from nixcloud/fgaz/some-21.11-stuff
Browse files Browse the repository at this point in the history
some 21.11 stuff
  • Loading branch information
fgaz authored Mar 22, 2022
2 parents 7e421fe + f74fb54 commit 1ae30df
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
12 changes: 9 additions & 3 deletions modules/services/TLS/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,18 @@ in
}
];

users.groups = fold (identifier: con: con // {
users.groups = (fold (identifier: con: con // {
"${filterIdentifier identifier}" = let c = config.nixcloud.TLS.certs.${identifier}; in { members = c.users; };
}) {} (attrNames config.nixcloud.TLS.certs);
}) {} (attrNames config.nixcloud.TLS.certs))
// optionalAttrs (acmeSupplied != []) {
nixcloud-lego-user = {};
};

users.users = optionalAttrs (acmeSupplied != []) {
nixcloud-lego-user = {};
nixcloud-lego-user = {
isSystemUser = true;
group = "nixcloud-lego-user";
};
};

systemd.services = listToAttrs (selfsignedTargets ++ userSuppliedTargets ++ acmeSupplied ++ acmeSuppliedPreliminary);
Expand Down
20 changes: 10 additions & 10 deletions modules/services/email/nixcloud-email.nix
Original file line number Diff line number Diff line change
Expand Up @@ -621,27 +621,27 @@ in {
after = "${./dovecot}/sieve/file-spam.sieve";
};

mailboxes = [
{ name = "Trash";
mailboxes = {
Trash = {
auto = "create";
specialUse = "Trash";
}
};

{ name = "Drafts";
Drafts = {
auto = "create";
specialUse = "Drafts";
}
};

{ name = "Sent";
Sent = {
auto = "create";
specialUse = "Sent";
}
};

{ name = "Spam";
Spam = {
auto = "create";
specialUse = "Junk";
}
];
};
};

extraConfig = lib.optionalString (cfg.enableTLS) ''
# https://github.com/nixcloud/nixcloud-webservices/issues/21
Expand Down
1 change: 1 addition & 0 deletions modules/services/email/postfix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ in
services.pfix-srsd.enable = config.services.postfix.useSrs;

services.mail.sendmailSetuidWrapper = mkIf config.services.postfix.setSendmail {
owner = "nobody";
program = "sendmail";
source = "${pkgs.postfix}/bin/sendmail";
group = setgidGroup;
Expand Down
5 changes: 4 additions & 1 deletion modules/services/reverse-proxy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ in
};


users.extraUsers."${user}".group = "${group}";
users.extraUsers."${user}" = {
group = "${group}";
isSystemUser = true;
};

users.extraGroups."${user}" = {};

Expand Down

0 comments on commit 1ae30df

Please sign in to comment.