diff --git a/hosts/kuro/default.nix b/hosts/kuro/default.nix index f421325e..00dc68a1 100644 --- a/hosts/kuro/default.nix +++ b/hosts/kuro/default.nix @@ -25,6 +25,7 @@ browsers.default = "firefox"; browsers.firefox.enable = true; # browsers.qutebrowser.enable = true; + # browsers.vimb.enable = true; # gaming.emulators.psx.enable = true; # gaming.steam.enable = true; diff --git a/modules/desktop/browsers/default.nix b/modules/desktop/browsers/default.nix index 0b6e8871..737d6a8d 100644 --- a/modules/desktop/browsers/default.nix +++ b/modules/desktop/browsers/default.nix @@ -4,6 +4,7 @@ with lib; imports = [ ./firefox.nix ./qutebrowser.nix + ./vimb.nix ./vivaldi.nix ]; diff --git a/modules/desktop/browsers/vimb.nix b/modules/desktop/browsers/vimb.nix new file mode 100644 index 00000000..875232b5 --- /dev/null +++ b/modules/desktop/browsers/vimb.nix @@ -0,0 +1,28 @@ +# NOTE pkgs.vimb is unmaintained and broken on nixos. This module doesn't work, +# and only exists for posterity. Don't use it! + +{ config, options, lib, pkgs, ... }: +with lib; +{ + options.modules.desktop.browsers.vimb = { + enable = mkOption { + type = types.bool; + default = false; + }; + }; + + config = mkIf config.modules.desktop.browsers.vimb.enable { + my.packages = with pkgs; [ + vimb + tabbed + (makeDesktopItem { + name = "vimb-private"; + desktopName = "Vimb (Private)"; + genericName = "Open an incognito Vimb window"; + icon = "vim"; + exec = "${firefox-bin}/bin/vimb --incognito"; + categories = "Network"; + }) + ]; + }; +}