[Nix-dev] Replace module options

Nicolas Pierron nicolas.b.pierron at gmail.com
Sun Nov 29 17:53:56 CET 2015


No mkForce only applies to option definitions, not to option declarations.

On Sun, Nov 29, 2015 at 4:32 PM, Teo Klestrup Röijezon <teo at nullable.se> wrote:
> 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
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>



-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/


More information about the nix-dev mailing list