nixos-config/home/tridactyl.nix

22 lines
374 B
Nix
Raw Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkEnableOption
mkIf
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2021-07-29 12:17:41 +02:00
cfg = config.my.home.tridactyl;
2022-04-10 11:54:58 +02:00
in {
2022-01-11 16:08:21 +01:00
options.my.home.tridactyl = {
2022-04-10 11:54:58 +02:00
enable = (mkEnableOption "tridactyl code display tool") // {default = config.my.home.firefox.enable;};
2021-07-29 12:17:41 +02:00
};
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;
};
}