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

34 lines
1008 B
Nix
Raw Permalink Normal View History

{ config, pkgs, lib, user, ... }:
2022-07-23 19:00:49 +00:00
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;
in
with lib; {
2022-07-23 19:00:49 +00:00
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; }; };
home-manager.users."${user.name}" = {
2022-07-23 19:00:49 +00:00
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=";
};
};
};
}