mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Browser] vdhcoapp whitelist of Edge extension has been merged upstream
This commit is contained in:
parent
c2ece764da
commit
d6227b0255
1 changed files with 3 additions and 8 deletions
|
|
@ -54,16 +54,11 @@ in {
|
|||
];
|
||||
aviallon.desktop.browser.chromium.overrides.enableWideVine = true;
|
||||
|
||||
environment.etc = with builtins; let
|
||||
vdhcoappManifestFile = unsafeDiscardStringContext (readFile "${vdhcoapp}/etc/chromium/native-messaging-hosts/net.downloadhelper.coapp.json");
|
||||
vdhcoappManifest = fromJSON (toString vdhcoappManifestFile);
|
||||
moddedManifest = toJSON (recursiveUpdate vdhcoappManifest {
|
||||
allowed_origins = vdhcoappManifest.allowed_origins ++ [ "chrome-extension://jmkaglaafmhbcpleggkmaliipiilhldn/" ];
|
||||
});
|
||||
manifestFile = pkgs.writeText "${vdhcoappManifest.name}.json" moddedManifest;
|
||||
environment.etc = with builtins; let
|
||||
vdhcoappManifestFile = "${vdhcoapp}/etc/chromium/native-messaging-hosts/net.downloadhelper.coapp.json";
|
||||
in {
|
||||
"chromium/native-messaging-hosts/net.downloadhelper.coapp.json".source =
|
||||
"${manifestFile}";
|
||||
"${vdhcoappManifestFile}";
|
||||
};
|
||||
|
||||
aviallon.programs.allowUnfreeList = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue