summaryrefslogtreecommitdiff
path: root/users/gkleen@hel.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/gkleen@hel.nix')
-rw-r--r--users/gkleen@hel.nix41
1 files changed, 25 insertions, 16 deletions
diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix
index aff24e15..cf8e004d 100644
--- a/users/gkleen@hel.nix
+++ b/users/gkleen@hel.nix
@@ -1,41 +1,50 @@
1{ 1{
2 packageOverrides = pkgs: rec { 2 packageOverrides = pkgs: with pkgs; {
3 chromium-wrapper = pkgs.symlinkJoin { 3 chromium-wrapper = symlinkJoin {
4 name = ''${pkgs.chromium.name}-wrapped''; 4 name = ''${chromium.name}-wrapped'';
5 paths = [ pkgs.chromium ]; 5 paths = [ chromium ];
6 buildInputs = [ pkgs.makeWrapper ]; 6 buildInputs = [ makeWrapper ];
7 postBuild = '' 7 postBuild = ''
8 wrapProgram $out/bin/chromium \ 8 wrapProgram $out/bin/chromium \
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 { 12 chrome-wrapper = symlinkJoin {
13 name = ''${pkgs.google-chrome.name}-wrapped''; 13 name = ''${google-chrome-dev.name}-wrapped'';
14 paths = [ pkgs.google-chrome ]; 14 paths = [ google-chrome-dev ];
15 buildInputs = [ pkgs.makeWrapper ]; 15 buildInputs = [ makeWrapper ];
16 postBuild = '' 16 postBuild = ''
17 wrapProgram $out/bin/google-chrome-stable \ 17 wrapProgram $out/bin/google-chrome-unstable \
18 --add-flags --force-device-scale-factor=1.6 18 --add-flags --force-device-scale-factor=1.6
19 ln -s $out/bin/google-chrome-stable $out/bin/chrome 19 ln -s $out/bin/google-chrome-unstable $out/bin/chrome
20 20
21 rm $out/share/applications/google-chrome.desktop 21 rm $out/share/applications/google-chrome-unstable.desktop
22 substitute ${pkgs.google-chrome}/share/applications/google-chrome.desktop $out/share/applications/google-chrome.desktop --replace "${pkgs.google-chrome}" "$out" 22 substitute ${google-chrome-dev}/share/applications/google-chrome-unstable.desktop $out/share/applications/google-chrome-unstable.desktop --replace "${google-chrome-dev}" "$out"
23 ''; 23 '';
24 }; 24 };
25 gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: { 25 gnupg = lib.overrideDerivation gnupg (oldAttrs: {
26 postInstall = '' 26 postInstall = ''
27 ln -s $out/bin/gpg2 $out/bin/gpg 27 ln -s $out/bin/gpg2 $out/bin/gpg
28 ''; 28 '';
29 }); 29 });
30 dunst-suspend = pkgs.writeScriptBin "dunst-suspend" '' 30 dunst-suspend = writeScriptBin "dunst-suspend" ''
31 #!${pkgs.stdenv.shell} 31 #!${pkgs.stdenv.shell}
32 32
33 export PATH=${pkgs.psmisc}/bin:$PATH 33 export PATH=${psmisc}/bin:$PATH
34 34
35 killall -s USR1 -u "$(whoami)" -- dunst 35 killall -s USR1 -u "$(whoami)" -- dunst
36 $@ 36 $@
37 killall -s USR2 -u "$(whoami)" -- dunst 37 killall -s USR2 -u "$(whoami)" -- dunst
38 ''; 38 '';
39 gajim = lib.overrideDerivation gajim (old: {
40 enableNotifications = true;
41 });
42 haskellPackages = haskellPackages.override {
43 overrides = self: super: with super; {
44 extended-reals = haskell.lib.doJailbreak extended-reals;
45 pandoc-crossref = haskell.lib.dontTest pandoc-crossref;
46 } // (import ../custom/thermoprint { inherit pkgs; });
47 };
39 } // (import ../utils/nix/default.nix) {}; 48 } // (import ../utils/nix/default.nix) {};
40 49
41 allowUnfree = true; 50 allowUnfree = true;