* Configuration options networking.defaultMailServer to enable direct mail
delivery without a local mail server (via ssmtp). * Add vimDiet to the CD, not the system path in general. svn path=/nixos/trunk/; revision=9607
This commit is contained in:
parent
89670079ab
commit
5bb4e343b4
@ -81,6 +81,13 @@ rec {
|
|||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
extraPackages = pkgs: [
|
||||||
|
pkgs.vimDiet
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -127,8 +127,20 @@ import ../helpers/make-etc.nix {
|
|||||||
";
|
";
|
||||||
target = "nix.conf"; # will be symlinked from /nix/etc/nix/nix.conf in activate-configuration.sh.
|
target = "nix.conf"; # will be symlinked from /nix/etc/nix/nix.conf in activate-configuration.sh.
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Configuration for ssmtp.
|
||||||
|
++ (optional ["networking" "defaultMailServer" "directDelivery"] {
|
||||||
|
source = pkgs.writeText "ssmtp.conf" "
|
||||||
|
mailhub=${config.get ["networking" "defaultMailServer" "hostName"]}
|
||||||
|
UseTLS=${if config.get ["networking" "defaultMailServer" "useTLS"] then "YES" else "NO"}
|
||||||
|
UseSTARTTLS=${if config.get ["networking" "defaultMailServer" "useSTARTTLS"] then "YES" else "NO"}
|
||||||
|
#Debug=YES
|
||||||
|
";
|
||||||
|
target = "ssmtp/ssmtp.conf";
|
||||||
|
})
|
||||||
|
|
||||||
# Configuration file for fontconfig used to locate
|
# Configuration file for fontconfig used to locate
|
||||||
# (X11) client-rendered fonts.
|
# (X11) client-rendered fonts.
|
||||||
++ (optional ["fonts" "enableFontConfig"] {
|
++ (optional ["fonts" "enableFontConfig"] {
|
||||||
|
@ -322,7 +322,7 @@
|
|||||||
description = "
|
description = "
|
||||||
If <literal>true</literal>, monitor Ethernet interfaces for
|
If <literal>true</literal>, monitor Ethernet interfaces for
|
||||||
cables being plugged in or unplugged. When this occurs, the
|
cables being plugged in or unplugged. When this occurs, the
|
||||||
<optional>dhclient</optional> service is restarted to
|
<command>dhclient</command> service is restarted to
|
||||||
automatically obtain a new IP address. This is useful for
|
automatically obtain a new IP address. This is useful for
|
||||||
roaming users (laptops).
|
roaming users (laptops).
|
||||||
";
|
";
|
||||||
@ -339,6 +339,56 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["networking" "defaultMailServer" "directDelivery"];
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "
|
||||||
|
Use the trivial Mail Transfer Agent (MTA)
|
||||||
|
<command>ssmtp</command> package to allow programs to send
|
||||||
|
e-mail. If you don't want to run a “real” MTA like
|
||||||
|
<command>sendmail</command> or <command>postfix</command> on
|
||||||
|
your machine, set this option to <literal>true</literal>, and
|
||||||
|
set the option
|
||||||
|
<option>networking.defaultMailServer.hostName</option> to the
|
||||||
|
host name of your preferred mail server.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["networking" "defaultMailServer" "hostName"];
|
||||||
|
example = "mail.example.org";
|
||||||
|
description = "
|
||||||
|
The host name of the default mail server to use to deliver
|
||||||
|
e-mail.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["networking" "defaultMailServer" "useTLS"];
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "
|
||||||
|
Whether TLS should be used to connect to the default mail
|
||||||
|
server.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["networking" "defaultMailServer" "useSTARTTLS"];
|
||||||
|
default = false;
|
||||||
|
example = true;
|
||||||
|
description = "
|
||||||
|
Whether the STARTTLS should be used to connect to the default
|
||||||
|
mail server. (This is needed for TLS-capable mail servers
|
||||||
|
running on the default SMTP port 25.)
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = ["fileSystems"];
|
name = ["fileSystems"];
|
||||||
default = [];
|
default = [];
|
||||||
|
@ -221,7 +221,6 @@ rec {
|
|||||||
pkgs.udev
|
pkgs.udev
|
||||||
pkgs.upstart
|
pkgs.upstart
|
||||||
pkgs.utillinux
|
pkgs.utillinux
|
||||||
pkgs.vimDiet
|
|
||||||
pkgs.wirelesstools
|
pkgs.wirelesstools
|
||||||
nix
|
nix
|
||||||
nixosInstall
|
nixosInstall
|
||||||
@ -230,6 +229,7 @@ rec {
|
|||||||
setuidWrapper
|
setuidWrapper
|
||||||
]
|
]
|
||||||
++ pkgs.lib.optional (config.get ["security" "sudo" "enable"]) pkgs.sudo
|
++ pkgs.lib.optional (config.get ["security" "sudo" "enable"]) pkgs.sudo
|
||||||
|
++ pkgs.lib.optional (config.get ["networking" "defaultMailServer" "directDelivery"]) pkgs.ssmtp
|
||||||
++ pkgs.lib.concatLists (map (job: job.extraPath) upstartJobs.jobs)
|
++ pkgs.lib.concatLists (map (job: job.extraPath) upstartJobs.jobs)
|
||||||
++ (config.get ["environment" "extraPackages"]) pkgs
|
++ (config.get ["environment" "extraPackages"]) pkgs
|
||||||
++ pkgs.lib.optional (config.get ["fonts" "enableFontDir"]) fontDir;
|
++ pkgs.lib.optional (config.get ["fonts" "enableFontDir"]) fontDir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user