2020-07-27 07:18:59 +03:00
|
|
|
{ pkgs, ... }:
|
2020-01-04 08:06:31 +03:00
|
|
|
let inherit (builtins) readFile;
|
2020-07-31 07:17:28 +03:00
|
|
|
in
|
|
|
|
{
|
2020-01-04 07:19:53 +03:00
|
|
|
sound.enable = true;
|
|
|
|
|
|
|
|
environment = {
|
2020-07-31 07:17:28 +03:00
|
|
|
etc."xdg/qutebrowser/config.py".text =
|
|
|
|
let mpv = "${pkgs.mpv}/bin/mpv";
|
|
|
|
in
|
|
|
|
''
|
|
|
|
${readFile ./config.py}
|
2020-01-04 07:19:53 +03:00
|
|
|
|
2020-07-31 07:17:28 +03:00
|
|
|
config.bind(',m', 'hint links spawn -d ${mpv} {hint-url}')
|
|
|
|
config.bind(',v', 'spawn -d ${mpv} {url}')
|
|
|
|
'';
|
2020-01-04 07:19:53 +03:00
|
|
|
|
|
|
|
sessionVariables.BROWSER = "qute";
|
|
|
|
|
2020-12-06 02:37:16 +03:00
|
|
|
systemPackages = with pkgs; [ qute qutebrowser mpv youtubeDL rofi ];
|
2020-01-04 07:19:53 +03:00
|
|
|
};
|
2020-08-03 06:26:00 +03:00
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
# wrapper to specify config file
|
|
|
|
qute = prev.writeShellScriptBin "qute" ''
|
|
|
|
QT_QPA_PLATFORMTHEME= exec ${prev.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@"
|
|
|
|
'';
|
|
|
|
})
|
|
|
|
];
|
2020-01-04 07:19:53 +03:00
|
|
|
}
|