1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 09:58:32 +02:00

chromium: use attribute set to define files

To avoid warning message concerning deprecation of the `loaOf` type.
This commit is contained in:
Robert Helgesson 2020-01-11 19:08:41 +01:00
parent 4ad3fe78f9
commit 00e26ceffe
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -62,8 +62,8 @@ let
else "${config.xdg.configHome}/${browser}"; else "${config.xdg.configHome}/${browser}";
extensionJson = ext: { extensionJson = ext: {
target = "${configDir}/External Extensions/${ext}.json"; name = "${configDir}/External Extensions/${ext}.json";
text = builtins.toJSON { value.text = builtins.toJSON {
external_update_url = "https://clients2.google.com/service/update2/crx"; external_update_url = "https://clients2.google.com/service/update2/crx";
}; };
}; };
@ -71,7 +71,7 @@ let
in in
mkIf cfg.enable { mkIf cfg.enable {
home.packages = [ cfg.package ]; home.packages = [ cfg.package ];
home.file = map extensionJson cfg.extensions; home.file = listToAttrs (map extensionJson cfg.extensions);
}; };
in in