aboutsummaryrefslogtreecommitdiff
path: root/modules/qutebrowser
diff options
context:
space:
mode:
authorstefan <stefan@s00.xyz>2025-03-03 21:55:50 -0500
committerstefan <stefan@s00.xyz>2025-03-03 21:55:50 -0500
commit25ed6898befb1c5d35b5517d60633c2a4d8eb540 (patch)
tree0700ec2c9535af9cb28658568827a4366b47c188 /modules/qutebrowser
parent390d23083905e9cd26ea44393422630ffe99c9a5 (diff)
downloadhome-25ed6898befb1c5d35b5517d60633c2a4d8eb540.tar.gz
added readme
Diffstat (limited to 'modules/qutebrowser')
-rw-r--r--modules/qutebrowser/default.nix18
1 files changed, 18 insertions, 0 deletions
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;
+ };
+ };
+}