zaphyra's git: nixfiles

zaphyra's nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
{
  config,
  lib,
  ...
}:

{

  options.zaphyra.programs.mcfly.enable = lib.mkOption {
    type = lib.types.bool;
    default = true;
  };

  config = lib.mkIf config.zaphyra.programs.mcfly.enable {
    programs.mcfly = {
      enable = true;
      enableFishIntegration = true;
      enableZshIntegration = true;
      fuzzySearchFactor = 2;
    };

    home.persistence."/nix/persist/home/${config.home.username}".directories = [
      "mcfly/.local/share/mcfly"
    ];
  };

}