nixos-config/home/tridactyl.nix

19 lines
364 B
Nix
Raw Normal View History

2021-07-29 12:17:41 +02:00
{ config, lib, ... }:
let
2022-01-11 16:08:21 +01:00
inherit (lib)
mkEnableOption
mkIf
;
2021-07-29 12:17:41 +02:00
cfg = config.my.home.tridactyl;
in
{
2022-01-11 16:08:21 +01:00
options.my.home.tridactyl = {
2021-07-29 12:17:41 +02:00
enable = (mkEnableOption "tridactyl code display tool") // { default = config.my.home.firefox.enable; };
};
2022-01-11 16:08:21 +01:00
config = mkIf cfg.enable {
2021-07-29 12:17:41 +02:00
xdg.configFile."tridactyl/tridactylrc".source = ./tridactylrc;
};
}