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:
parent
4ad3fe78f9
commit
00e26ceffe
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue