about summary refs log tree commit diff
path: root/modules/user/aszlig/profiles/workstation/default.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2017-06-18 05:08:56 +0200
committeraszlig <aszlig@redmoonstudios.org>2017-06-18 05:08:56 +0200
commitd84822c5d069998e45ed9524fccd9f9f4d51b336 (patch)
treea6f4010e6bd2e9eb5384c4f2b8f1f7df5bd5cd3a /modules/user/aszlig/profiles/workstation/default.nix
parent1e4d169795a65be418cd53cb475cc8774b502f0a (diff)
santander: Update + convert to Chromium extension
The new version of the "TRAVIC-Sign" extension that's used by the
Santander bank now relies on native messaging, so it's much much easier
for us to sandbox and also easier to integrate.

For more information about native messaging see:

https://developer.chrome.com/extensions/nativeMessaging

So the upstream only contains a Firefox extension, but it doesn't
deviate very much (at least since the new non-XUL API) from the Chromium
extension API, so we only need to patch the manifest (where we also
constrain the sites that the extension is allowed to run) and refer to
the Wine wrapper in the native messaging host configuration file.

Right now, the Chromium version that we have in <nixpkgs> still refers
to /usr/share/chromium/extensions in order to search for system-provided
extensions, so we need to fix that as well.

In our workstation profiles we now no longer have the santander package
in lazyPackages, because it's also no longer a binary.

Previously the main reason why I added it to lazyPackages was that the
whole santander package had a closure size of several hundred megabytes
because of the Wine prefix. The latter now is essentially empty.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules/user/aszlig/profiles/workstation/default.nix')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix
index 05b830fd..793a1727 100644
--- a/modules/user/aszlig/profiles/workstation/default.nix
+++ b/modules/user/aszlig/profiles/workstation/default.nix
@@ -28,6 +28,8 @@ in {
       ${pkgs.xorg.xrandr}/bin/xrandr ${concatStringsSep " " randrConf}
     '') ++ import ./packages.nix pkgs;
 
+    environment.pathsToLink = lib.singleton "/share/chromium/extensions";
+
     vuizvui.lazyPackages = import ./lazy-packages.nix pkgs;
 
     hardware = {