devos/profiles/graphical/qutebrowser/default.nix

23 lines
472 B
Nix
Raw Normal View History

{ pkgs, ... }:
2020-01-04 06:06:31 +01:00
let inherit (builtins) readFile;
2020-07-31 06:17:28 +02:00
in
{
sound.enable = true;
environment = {
2020-07-31 06:17:28 +02:00
etc."xdg/qutebrowser/config.py".text =
let mpv = "${pkgs.mpv}/bin/mpv";
in
''
${readFile ./config.py}
2020-07-31 06:17:28 +02:00
config.bind(',m', 'hint links spawn -d ${mpv} {hint-url}')
config.bind(',v', 'spawn -d ${mpv} {url}')
'';
sessionVariables.BROWSER = "qute";
systemPackages = with pkgs; [ qute qutebrowser mpv youtubeDL ];
};
}