From 25ed6898befb1c5d35b5517d60633c2a4d8eb540 Mon Sep 17 00:00:00 2001 From: stefan Date: Mon, 3 Mar 2025 21:55:50 -0500 Subject: added readme --- modules/qutebrowser/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/qutebrowser/default.nix (limited to 'modules/qutebrowser') diff --git a/modules/qutebrowser/default.nix b/modules/qutebrowser/default.nix new file mode 100644 index 0000000..46c3ddf --- /dev/null +++ b/modules/qutebrowser/default.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, inputs, ... }: +let + cfg = config.modules.qutebrowser; +in +{ + options.modules.qutebrowser = { + enable = lib.mkEnableOption "sway"; + wrapWithNixGL = lib.mkEnableOption "NixGL Wrapper"; + }; + + config = { + programs.qutebrowser = lib.mkIf cfg.enable { + enable = true; + package = if cfg.wrapWithNixGL then config.lib.nixGL.wrap pkgs.qutebrowser else pkgs.qutebrowser; + loadAutoconfig = true; + }; + }; +} -- cgit v1.2.3