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, Игорь Пашев <[email protected]> wrote:

> 2015-11-29 19:26 GMT+03:00 Joel Moberg <[email protected]>:
> > 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
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to