summaryrefslogtreecommitdiff
path: root/users/gkleen@hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-06 17:47:05 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-06 17:47:05 +0200
commitf0122bd423489a61f794bb1c766ed62fca005c23 (patch)
tree19d5c4ba75a3d7233f02c84602aca729ac2eb699 /users/gkleen@hel.nix
parent6a52d98edf3c220255a6bb7ef609dbbcc71727fe (diff)
downloadnixos-f0122bd423489a61f794bb1c766ed62fca005c23.tar
nixos-f0122bd423489a61f794bb1c766ed62fca005c23.tar.gz
nixos-f0122bd423489a61f794bb1c766ed62fca005c23.tar.bz2
nixos-f0122bd423489a61f794bb1c766ed62fca005c23.tar.xz
nixos-f0122bd423489a61f794bb1c766ed62fca005c23.zip
Wrap chrome instead of chromium
Diffstat (limited to 'users/gkleen@hel.nix')
-rw-r--r--users/gkleen@hel.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix
index 28548a84..bd96a9fd 100644
--- a/users/gkleen@hel.nix
+++ b/users/gkleen@hel.nix
@@ -1,7 +1,7 @@
1{ 1{
2 packageOverrides = pkgs: rec { 2 packageOverrides = pkgs: rec {
3 chromium-wrapper = pkgs.symlinkJoin { 3 chromium-wrapper = pkgs.symlinkJoin {
4 name = "chromium-wrapper"; 4 name = ''${pkgs.chromium.name}-wrapped'';
5 paths = [ pkgs.chromium ]; 5 paths = [ pkgs.chromium ];
6 buildInputs = [ pkgs.makeWrapper ]; 6 buildInputs = [ pkgs.makeWrapper ];
7 postBuild = '' 7 postBuild = ''
@@ -9,6 +9,19 @@
9 --add-flags --force-device-scale-factor=1.6 9 --add-flags --force-device-scale-factor=1.6
10 ''; 10 '';
11 }; 11 };
12 chrome-wrapper = pkgs.symlinkJoin {
13 name = ''${pkgs.google-chrome.name}-wrapped'';
14 paths = [ pkgs.google-chrome ];
15 buildInputs = [ pkgs.makeWrapper ];
16 postBuild = ''
17 wrapProgram $out/bin/google-chrome-stable \
18 --add-flags --force-device-scale-factor=1.6
19 ln -s $out/bin/google-chrome-stable $out/bin/chrome
20
21 rm $out/share/applications/google-chrome.desktop
22 substitute ${pkgs.google-chrome}/share/applications/google-chrome.desktop $out/share/applications/google-chrome.desktop --replace "${pkgs.google-chrome}" "$out"
23 '';
24 };
12 gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: { 25 gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: {
13 postInstall = '' 26 postInstall = ''
14 ln -s $out/bin/gpg2 $out/bin/gpg 27 ln -s $out/bin/gpg2 $out/bin/gpg