summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/gkleen@hel.nix24
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;