2023-07-08 08:12:35 +00:00
|
|
|
{ pkgs, ... }:
|
2020-04-07 07:10:07 +00:00
|
|
|
|
|
|
|
{
|
2023-07-08 08:12:35 +00:00
|
|
|
programs.qutebrowser = {
|
|
|
|
enable = true;
|
2020-04-07 07:10:07 +00:00
|
|
|
|
2023-07-08 08:12:35 +00:00
|
|
|
settings = {
|
|
|
|
colors = {
|
|
|
|
hints = {
|
|
|
|
bg = "#000000";
|
|
|
|
fg = "#ffffff";
|
2020-04-07 07:10:07 +00:00
|
|
|
};
|
2023-07-08 08:12:35 +00:00
|
|
|
tabs.bar.bg = "#000000";
|
2020-04-07 07:10:07 +00:00
|
|
|
};
|
2023-07-08 08:12:35 +00:00
|
|
|
spellcheck.languages = [ "en-US" "sv-SE" ];
|
|
|
|
tabs.tabs_are_windows = true;
|
2020-04-07 07:10:07 +00:00
|
|
|
};
|
|
|
|
|
2023-07-08 08:12:35 +00:00
|
|
|
extraConfig = ''
|
|
|
|
# Extra qutebrowser configuration.
|
2020-04-07 07:10:07 +00:00
|
|
|
'';
|
|
|
|
};
|
2023-07-08 08:12:35 +00:00
|
|
|
|
|
|
|
test.stubs.qutebrowser = { };
|
|
|
|
|
|
|
|
nmt.script = let
|
|
|
|
qutebrowserConfig = if pkgs.stdenv.hostPlatform.isDarwin then
|
|
|
|
".qutebrowser/config.py"
|
|
|
|
else
|
|
|
|
".config/qutebrowser/config.py";
|
|
|
|
in ''
|
|
|
|
assertFileContent \
|
|
|
|
home-files/${qutebrowserConfig} \
|
|
|
|
${
|
|
|
|
pkgs.writeText "qutebrowser-expected-config.py" ''
|
|
|
|
config.load_autoconfig(False)
|
|
|
|
c.colors.hints.bg = "#000000"
|
|
|
|
c.colors.hints.fg = "#ffffff"
|
|
|
|
c.colors.tabs.bar.bg = "#000000"
|
|
|
|
c.spellcheck.languages = ["en-US", "sv-SE"]
|
|
|
|
c.tabs.tabs_are_windows = True
|
|
|
|
# Extra qutebrowser configuration.
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
2020-04-07 07:10:07 +00:00
|
|
|
}
|