[Nix-dev] etc postfix subdir
Kevin Quick
quick at sparq.org
Fri Mar 29 06:40:08 CET 2013
I ran into the a problem trying to specify a file in a subdirectory of
/etc in my configuration.nix.
This works (with or without quotations):
environment.env."postfix_vmailbox".text="foo";
However, if I try to specify this:
environment.env.postfix/vmailbox.text="foo";
I get an "unexpected PATH" error, and if I add quotes:
environment.env."postfix/vmailbox".text="foo";
Then I get the following error (services.postfix.enable=true):
building path(s) `/nix/store/drb8pwps60bcb8a1hsakv6qlqkikin2k-etc'
duplicate entry postfix -> /var/postfix/conf
mismatched duplicate entry <-> /var/postfix/conf
builder for `/nix/store/mni4ljfsmmnx939wkyhb9aq3z4nb7b15-etc.drv' failed with exit code 1
cannot build derivation `/nix/store/6s4zh3waqnkg4s2nlr6y8bndyh1wqvbl-nixos-0.2pre4466_aaffb21-76a5e89.drv': 1 dependencies couldn't be built
I can use the first form, but the documentation at
http://hydra.nixos.org/build/4519492/download/1/nixos/manual.html (what
the nixos.org web page referenced) implies that the second
form should be possible, whereas the current github version of etc.nix
suggests the third.
--
Kevin Quick
More information about the nix-dev
mailing list