diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-06 18:00:17 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-06 18:00:17 +0200 |
commit | 905b99dd5553ca4a5dc576e8b80c2cdb9b89256c (patch) | |
tree | eb2d4786d2b68848a4161f49814b668f2617087a | |
parent | 95c8519560b6921fecd516c3ddb49bf489e0b0ff (diff) | |
parent | 31eaea9034a2bb459afcd9714fb01ed04206739c (diff) | |
download | nixos-905b99dd5553ca4a5dc576e8b80c2cdb9b89256c.tar nixos-905b99dd5553ca4a5dc576e8b80c2cdb9b89256c.tar.gz nixos-905b99dd5553ca4a5dc576e8b80c2cdb9b89256c.tar.bz2 nixos-905b99dd5553ca4a5dc576e8b80c2cdb9b89256c.tar.xz nixos-905b99dd5553ca4a5dc576e8b80c2cdb9b89256c.zip |
Merge branch 'master' of git:nixos
-rw-r--r-- | users/gkleen@hel.nix | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix index 28548a84..aff24e15 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,11 +9,33 @@ | |||
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 |
15 | ''; | 28 | ''; |
16 | }); | 29 | }); |
30 | dunst-suspend = pkgs.writeScriptBin "dunst-suspend" '' | ||
31 | #!${pkgs.stdenv.shell} | ||
32 | |||
33 | export PATH=${pkgs.psmisc}/bin:$PATH | ||
34 | |||
35 | killall -s USR1 -u "$(whoami)" -- dunst | ||
36 | $@ | ||
37 | killall -s USR2 -u "$(whoami)" -- dunst | ||
38 | ''; | ||
17 | } // (import ../utils/nix/default.nix) {}; | 39 | } // (import ../utils/nix/default.nix) {}; |
18 | 40 | ||
19 | allowUnfree = true; | 41 | allowUnfree = true; |