2020-01-04 05:19:53 +01:00
|
|
|
{ pkgs, ... }:
|
2020-01-04 06:06:31 +01:00
|
|
|
let inherit (builtins) readFile;
|
|
|
|
in {
|
2020-01-04 05:19:53 +01:00
|
|
|
sound.enable = true;
|
|
|
|
|
|
|
|
environment = {
|
2020-01-04 06:06:31 +01:00
|
|
|
etc."xdg/qutebrowser/config.py".text = let mpv = "${pkgs.mpv}/bin/mpv";
|
|
|
|
in ''
|
|
|
|
${readFile ./config.py}
|
2020-01-04 05:19:53 +01:00
|
|
|
|
2020-01-04 06:06:31 +01:00
|
|
|
config.bind(',m', 'hint links spawn -d ${mpv} {hint-url}')
|
|
|
|
config.bind(',v', 'spawn -d ${mpv} {url}')
|
|
|
|
'';
|
2020-01-04 05:19:53 +01:00
|
|
|
|
|
|
|
sessionVariables.BROWSER = "qute";
|
|
|
|
|
2020-01-04 06:06:31 +01:00
|
|
|
systemPackages = with pkgs; [ qute qutebrowser mpv youtubeDL ];
|
2020-01-04 05:19:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.overlays = let
|
|
|
|
overlay = final: prev: {
|
|
|
|
qute = prev.writeShellScriptBin "qute" ''
|
|
|
|
exec ${prev.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@"
|
|
|
|
'';
|
|
|
|
};
|
2020-01-04 06:06:31 +01:00
|
|
|
in [ overlay ];
|
2020-01-04 05:19:53 +01:00
|
|
|
}
|