darkreader: split into own option
This commit is contained in:
parent
b5fe0e39fc
commit
f7ee4c0d5c
4 changed files with 82 additions and 41 deletions
|
|
@ -103,7 +103,19 @@ in {
|
|||
extraPolicies =
|
||||
config.mods.browser.firefox.configuration
|
||||
// {
|
||||
ExtensionSettings = builtins.foldl' (acc: ext: acc // ext) {} config.mods.browser.firefox.extensions;
|
||||
ExtensionSettings = builtins.foldl' (acc: ext: acc // ext) {} (config.mods.browser.firefox.extensions
|
||||
++ (
|
||||
if (config.mods.browser.firefox.darkreader)
|
||||
then [
|
||||
{
|
||||
"addon@darkreader.org" = {
|
||||
install_url = "file://${pkgs.callPackage ../../../patches/darkreader.nix {inherit lib dashNixAdditionalProps;}}/latest.xpi";
|
||||
installation_mode = "normal_installed";
|
||||
};
|
||||
}
|
||||
]
|
||||
else []
|
||||
));
|
||||
};
|
||||
};
|
||||
profiles = builtins.listToAttrs config.mods.browser.firefox.profiles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue