This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/applications/firefox/tridactyl.nix

33 lines
993 B
Nix
Raw Normal View History

2022-07-23 19:00:49 +00:00
{ config, pkgs, lib, ... }:
let
2022-08-14 02:42:16 +00:00
this = config.my.application.firefox.tridactyl;
2022-08-14 02:42:04 +00:00
firefox = config.my.application.firefox;
2022-07-23 19:00:49 +00:00
in with lib; {
options = {
2022-08-14 02:42:04 +00:00
my.application.firefox.tridactyl.enable = mkOption {
2022-07-23 19:00:49 +00:00
default = firefox.enable;
type = with types; bool;
description = "";
};
};
2022-08-14 02:42:16 +00:00
config = mkIf this.enable {
2022-07-23 19:00:49 +00:00
# firefox.pkg =
2022-08-14 02:42:16 +00:00
# pkgs.firefox.override { this = { enableTridactylNative = true; }; };
2022-07-23 19:00:49 +00:00
home-manager.users.james = {
programs.firefox = {
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ tridactyl ];
};
home.packages = with pkgs; [ tridactyl-native ];
# This is a bit silly as this is currently managed by my make dot config.
xdg.configFile."tridactyl/tridactylrc".source = pkgs.fetchurl {
url =
"https://git.jpatrick.io/james/dotfiles/raw/branch/master/tridactyl/tridactylrc";
sha256 = "sha256-iOBd/yEvQP/Gn3+lS2Ztu9oslllZU4G7VnM4pTck+Tg=";
};
};
};
}