Organise Home Manager modules

This commit is contained in:
Oliver Davies 2025-04-23 23:05:45 +01:00
parent 81043d8f38
commit 2e91ed63c8
7 changed files with 26 additions and 12 deletions

View file

@ -0,0 +1,42 @@
{ config, lib, ... }:
with lib;
let
cfg = config.homeManagerModules.desktop.browsers.qutebrowser;
in
{
options.homeManagerModules.desktop.browsers.qutebrowser.enable =
mkEnableOption "Enable qutebrowser";
config = mkIf cfg.enable {
programs.qutebrowser = {
enable = true;
searchEngines = {
dp = "https://www.drupal.org/project/{}";
du = "https://www.drupal.org/u/{}";
gh = "https://github.com/search?q={}";
mn = "https://mynixos.com/search?q={}";
nx = "https://search.nixos.org/packages?query={}";
};
settings = {
colors.webpage.darkmode.enabled = true;
};
keyBindings = {
normal = {
"<Ctrl-d>" = "config-cycle colors.webpage.darkmode.enabled true false";
"xb" = "config-cycle statusbar.show always never";
"xt" = "config-cycle tabs.show always never";
"xx" = mkMerge [
"config-cycle statusbar.show always never"
"config-cycle tabs.show always never"
];
};
};
};
};
}