nix-starter-configs
nix-starter-configs copied to clipboard
`environment.etc` already defined
I need to add a configuration for wireplumber, and the Nix Wiki suggests this method
I'm not able to do that from configuration.nix
because environment.etc is already defined. Do you know how I can do that?
Environment.etc is also needed for persisting files so I am also looking forward for proper solution.
For now I just commented out original definition.
Hey folks.
environment.etc
is an attrset. You can simply merge the provided settings with the ones you want to add, for example:
environment.etc =
(lib.mapAttrs'
(name: value: {
name = "nix/path/${name}";
value.source = value.flake;
})
config.nix.registry) // {
foo = bar;
};
I do plan on simplifying, though, as I think the non-nixpkgs registries aren't that useful for 99% of people.
As of 8204a490a7153a55a05ccfab9e2b6292349df215, this settings is simplified a lot and should not generate confusion anymore