diff options
| author | stefan <stefan@s00.xyz> | 2025-03-03 21:55:50 -0500 |
|---|---|---|
| committer | stefan <stefan@s00.xyz> | 2025-03-03 21:55:50 -0500 |
| commit | 25ed6898befb1c5d35b5517d60633c2a4d8eb540 (patch) | |
| tree | 0700ec2c9535af9cb28658568827a4366b47c188 /modules | |
| parent | 390d23083905e9cd26ea44393422630ffe99c9a5 (diff) | |
| download | home-25ed6898befb1c5d35b5517d60633c2a4d8eb540.tar.gz | |
added readme
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/default.nix | 1 | ||||
| -rw-r--r-- | modules/global.nix | 12 | ||||
| -rw-r--r-- | modules/qutebrowser/default.nix | 18 |
3 files changed, 25 insertions, 6 deletions
diff --git a/modules/default.nix b/modules/default.nix index 9341547..3998fc1 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -7,5 +7,6 @@ ./zsh.nix ./sway ./neovim + ./qutebrowser ]; } diff --git a/modules/global.nix b/modules/global.nix index ff39759..5565476 100644 --- a/modules/global.nix +++ b/modules/global.nix @@ -28,9 +28,9 @@ in sway = { wrapWithNixGL = cfg.notNixOS; }; - # qutebrowser = { - # wrapWithNixGL = cfg.notNixOS; - # }; + qutebrowser = { + wrapWithNixGL = cfg.notNixOS; + }; }; nixGL = lib.mkIf cfg.notNixOS { @@ -38,9 +38,9 @@ in defaultWrapper = "mesa"; }; - # programs = { - # home-manager.enable = true; - # }; + programs = { + home-manager.enable = true; + }; targets.genericLinux.enable = cfg.notNixOS; 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; + }; + }; +} |