blob: fb65e343f13a18222488e827963f46090f846224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
packageOverrides = pkgs: rec {
chromium-wrapper = pkgs.symlinkJoin {
name = "chromium-wrapper";
paths = [ pkgs.chromium ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/chromium \
--add-flags --force-device-scale-factor=1.6
'';
};
gnupg = pkgs.lib.overrideDerivation pkgs.gnupg (oldAttrs: {
postInstall = ''
ln -s $out/bin/gpg2 $out/bin/gpg
'';
});
gnupg-script = with pkgs; writeScript "gnupg-script" ''
#!${stdenv.shell}
while ! systemctl --user show-environment | grep -qE '^DISPLAY='; do sleep 1; done
systemctl --user import-environment DISPLAY
exec ${gnupg}/bin/gpg2 --daemon
'';
} // (import ../utils/nix/default.nix) {};
allowUnfree = true;
chromium = {
enableWideVine = true;
enablePepperFlash = true;
};
mpv = {
vaapiSupport = true;
};
}
|