server: fix mailserver

This commit is contained in:
chayleaf 2024-01-30 23:01:09 +07:00
parent a5177a3c44
commit 36ab46439a
Signed by: chayleaf
GPG key ID: 78171AD46227E68E
3 changed files with 6 additions and 5 deletions

View file

@ -302,16 +302,15 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1706397479, "lastModified": 1706628962,
"narHash": "sha256-f5aOlL5eKiOkQy89sOvN653Yue1r/aXWTCL/Kz1iRMc=", "narHash": "sha256-BBbgY5OsYMxithcHtoulfAJHTmNxQ41Gr99cHZo4yOM=",
"owner": "chayleaf", "owner": "chayleaf",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "74ece655ded61dc9cb4a718cb574a73bb34a68bf", "rev": "8a98311cb973d73718e004461d57635b23f632af",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "chayleaf", "owner": "chayleaf",
"ref": "ci",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View file

@ -4,7 +4,7 @@
inputs = { inputs = {
#nixpkgs.url = "github:NixOS/nixpkgs/3dc2b4f8166f744c3b3e9ff8224e7c5d74a5424f"; #nixpkgs.url = "github:NixOS/nixpkgs/3dc2b4f8166f744c3b3e9ff8224e7c5d74a5424f";
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:chayleaf/nixpkgs/ci"; nixpkgs.url = "github:chayleaf/nixpkgs";
nixos-hardware.url = "github:NixOS/nixos-hardware"; nixos-hardware.url = "github:NixOS/nixos-hardware";
nix-index-database = { nix-index-database = {
url = "github:nix-community/nix-index-database"; url = "github:nix-community/nix-index-database";

View file

@ -46,6 +46,8 @@ in {
hashedPassword = cfg.hashedNoreplyPassword; hashedPassword = cfg.hashedNoreplyPassword;
sendOnly = true; sendOnly = true;
}; };
# TODO: remove when https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/issues/275 is fixed
services.dovecot2.sieve.extensions = [ "fileinto" ];
services.dovecot2.extraConfig = services.dovecot2.extraConfig =
let let
passwd = builtins.toFile "dovecot2-local-passwd" '' passwd = builtins.toFile "dovecot2-local-passwd" ''