1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-25 19:29:47 +01:00
home-manager/tests/modules/programs/qutebrowser/settings.nix

47 lines
1 KiB
Nix
Raw Normal View History

2023-07-08 10:12:35 +02:00
{ pkgs, ... }:
2020-04-07 09:10:07 +02:00
{
2023-07-08 10:12:35 +02:00
programs.qutebrowser = {
enable = true;
2020-04-07 09:10:07 +02:00
2023-07-08 10:12:35 +02:00
settings = {
colors = {
hints = {
bg = "#000000";
fg = "#ffffff";
2020-04-07 09:10:07 +02:00
};
2023-07-08 10:12:35 +02:00
tabs.bar.bg = "#000000";
2020-04-07 09:10:07 +02:00
};
2023-07-08 10:12:35 +02:00
spellcheck.languages = [ "en-US" "sv-SE" ];
tabs.tabs_are_windows = true;
2020-04-07 09:10:07 +02:00
};
2023-07-08 10:12:35 +02:00
extraConfig = ''
# Extra qutebrowser configuration.
2020-04-07 09:10:07 +02:00
'';
};
2023-07-08 10:12:35 +02: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 09:10:07 +02:00
}