1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 04:39:48 +01: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}";
extensionJson = ext: {
target = "${configDir}/External Extensions/${ext}.json";
text = builtins.toJSON {
name = "${configDir}/External Extensions/${ext}.json";
value.text = builtins.toJSON {
external_update_url = "https://clients2.google.com/service/update2/crx";
};
};
@ -71,7 +71,7 @@ let
in
mkIf cfg.enable {
home.packages = [ cfg.package ];
home.file = map extensionJson cfg.extensions;
home.file = listToAttrs (map extensionJson cfg.extensions);
};
in