diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-14 20:57:31 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-14 20:57:31 +0200 |
commit | 0f0bf6282bd77fb07cb3e3bb6326342afe6cc115 (patch) | |
tree | c4b8a71b3aa4603ef7522028aed468b0c4f1af34 /users | |
parent | bde63da0e41985de6fd1d82e0fd060393d3e4729 (diff) | |
download | nixos-0f0bf6282bd77fb07cb3e3bb6326342afe6cc115.tar nixos-0f0bf6282bd77fb07cb3e3bb6326342afe6cc115.tar.gz nixos-0f0bf6282bd77fb07cb3e3bb6326342afe6cc115.tar.bz2 nixos-0f0bf6282bd77fb07cb3e3bb6326342afe6cc115.tar.xz nixos-0f0bf6282bd77fb07cb3e3bb6326342afe6cc115.zip |
attempt at chromium dpi override
Diffstat (limited to 'users')
-rw-r--r-- | users/gkleen@hel.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/users/gkleen@hel.nix b/users/gkleen@hel.nix index 7683fc68..19546864 100644 --- a/users/gkleen@hel.nix +++ b/users/gkleen@hel.nix | |||
@@ -1,12 +1,22 @@ | |||
1 | { | 1 | { |
2 | packageOverrides = pkgs: rec { | 2 | packageOverrides = pkgs: rec { |
3 | chromium = pkgs.stdenv.mkDerivation { | ||
4 | src = pkgs.chromium; | ||
5 | phases = [ "installPhase" ]; | ||
6 | installPhase = '' | ||
7 | mkdir -p $out | ||
8 | cp -a $src/. $out/ | ||
9 | ''; | ||
10 | postInstall = '' | ||
11 | wrapProgram $out/bin/chromium \ | ||
12 | --add-flags --force-device-scale-factor=1.6 | ||
13 | ''; | ||
14 | }; | ||
3 | } // (import ../utils/nix/default.nix) {}; | 15 | } // (import ../utils/nix/default.nix) {}; |
4 | 16 | ||
5 | allowUnfree = true; | 17 | allowUnfree = true; |
6 | 18 | ||
7 | chromium = { | 19 | chromium = { |
8 | enableWideVine = true; | 20 | enableWideVine = true; |
9 | pulseSupport = true; | ||
10 | hiDPISupport = true; | ||
11 | }; | 21 | }; |
12 | } | 22 | } |