Merge branch 'pr/fix-mailserver-postugprade' into 'master'
vmd32387/containers: pass resolv.conf to containers See merge request steveeJ/infra!38
This commit is contained in:
commit
ff9ab68b3c
2 changed files with 4 additions and 2 deletions
|
@ -61,7 +61,7 @@ in args // {
|
|||
serviceConfig.RestartSec = 600;
|
||||
serviceConfig.Restart = "always";
|
||||
description = "Getmail service";
|
||||
path = [ pkgs.getmail ];
|
||||
path = [ ];
|
||||
script = let
|
||||
rc = pkgs.writeText "mailATstefanjunker.de.getmail.rc" ''
|
||||
[options]
|
||||
|
@ -82,7 +82,7 @@ in args // {
|
|||
path = ${pkgs.dovecot}/libexec/dovecot/dovecot-lda
|
||||
'';
|
||||
in ''
|
||||
getmail --rcfile=${rc} --idle=INBOX
|
||||
${pkgs.getmail}/bin/getmail --rcfile=${rc} --idle=INBOX
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -95,6 +95,8 @@ in {
|
|||
done
|
||||
'';
|
||||
|
||||
networking.useHostResolvConf = true;
|
||||
|
||||
containers = {
|
||||
mailserver = import ../../containers/mailserver.nix {
|
||||
hostAddress = "192.168.100.10";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue