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