about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2020-03-22 15:27:24 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2020-03-22 15:52:01 +0100
commitfc316f7b319a40760a4a3a939c4ff840074eac4c (patch)
treea50843150415b90f1bc90f04c8056cafad285d4c /pkgs
parentce12576dd0ccbec911cc03d86da9728192c4ba84 (diff)
downloadnixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.tar
nixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.tar.gz
nixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.tar.bz2
nixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.tar.lz
nixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.tar.xz
nixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.tar.zst
nixlib-fc316f7b319a40760a4a3a939c4ff840074eac4c.zip
nixos/ssmtp: declare all option renames manually
While renaming `networking.defaultMailServer` directly to
`services.ssmtp` is shorter and probably clearer, it causes eval errors
due to the second rename (directDelivery -> enable) when using e.g. `lib.mkForce`.

For instance,

``` nix
{ lib, ... }: {
  networking.defaultMailServer = {
    hostName = "localhost";
    directDelivery = lib.mkForce true;
    domain = "example.org";
  };
}
```

would break with the following (rather confusing) error:

```
error: The option value `services.ssmtp.enable' in `/home/ma27/Projects/nixpkgs/nixos/modules/programs/ssmtp.nix' is not of type `boolean'.
(use '--show-trace' to show detailed location information)
```
Diffstat (limited to 'pkgs')
0 files changed, 0 insertions, 0 deletions