[Nix-dev] Replace module options

Teo Klestrup Röijezon teo at nullable.se
Sun Nov 29 17:32:56 CET 2015


mkForce (https://nixos.org/nixos/manual/index.html#sec-modularity) is
probably what you're looking for then.

On 29 November 2015 at 17:29, Игорь Пашев <pashev.igor at gmail.com> wrote:

> 2015-11-29 19:26 GMT+03:00 Joel Moberg <joel.moberg at gmail.com>:
> > I think every service have a enable attribute, you should be able to set
> > this to false or just override that service with another one (example
> > config.systemd.services.alsa-store.enable=false). nix-repl is useful to
> > inspect what your config looks like, you can invoke it with nix-repl
> > '<nixpkgs/nixos>' and investigate the attribute 'config'.
>
>
> I tried to override the "enable" option a well. And it said
> "The option `services.foo.enable' in <one file> is already declared in
> <another file>" ¯\_(ツ)_/¯
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151129/3020a15d/attachment.html 


More information about the nix-dev mailing list