mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 22:50:39 +00:00
chromium: use attribute set to define files
To avoid warning message concerning deprecation of the `loaOf` type.
This commit is contained in:
parent
4ad3fe78f9
commit
00e26ceffe
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue