Add browsers/vimb module (does not work!)

This commit is contained in:
Henrik Lissner 2020-04-06 15:40:52 -04:00
parent fac2bb74f3
commit 9103a582d6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 30 additions and 0 deletions

View file

@ -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;

View file

@ -4,6 +4,7 @@ with lib;
imports = [
./firefox.nix
./qutebrowser.nix
./vimb.nix
./vivaldi.nix
];

View file

@ -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";
})
];
};
}