summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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