From 9103a582d6aca76eda9d91442507e64615226a1b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 6 Apr 2020 15:40:52 -0400 Subject: [PATCH] Add browsers/vimb module (does not work!) --- hosts/kuro/default.nix | 1 + modules/desktop/browsers/default.nix | 1 + modules/desktop/browsers/vimb.nix | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 modules/desktop/browsers/vimb.nix 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"; + }) + ]; + }; +}