mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
73559e0dbc
See #1774. The option default to false.
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.qutebrowser = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
colors = {
|
|
hints = {
|
|
bg = "#000000";
|
|
fg = "#ffffff";
|
|
};
|
|
tabs.bar.bg = "#000000";
|
|
};
|
|
spellcheck.languages = [ "en-US" "sv-SE" ];
|
|
tabs.tabs_are_windows = true;
|
|
};
|
|
|
|
extraConfig = ''
|
|
# Extra qutebrowser configuration.
|
|
'';
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
qutebrowser = pkgs.writeScriptBin "dummy-qutebrowser" "";
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/.config/qutebrowser/config.py \
|
|
${
|
|
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.
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|