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
James Patrick d7e2c0a924 Switching from hardcoded username.
Will this ever change? No like likely, but I do think that this is the
correct way to do this.
2022-08-14 19:35:15 -04:00

34 lines
1008 B
Nix

{ config, pkgs, lib, user, ... }:
let
this = config.my.application.firefox.tridactyl;
firefox = config.my.application.firefox;
in
with lib; {
options = {
my.application.firefox.tridactyl.enable = mkOption {
default = firefox.enable;
type = with types; bool;
description = "";
};
};
config = mkIf this.enable {
# firefox.pkg =
# pkgs.firefox.override { this = { enableTridactylNative = true; }; };
home-manager.users."${user.name}" = {
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=";
};
};
};
}