fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Mario Rodastreewide: remove marsam as maintainer (#4136)a4817894

master
1.1 KiB55 linesraw
1{ config, lib, pkgs, ... }:
2
3with lib;
4
5let
6
7  cfg = config.programs.pazi;
8
9in {
10  meta.maintainers = [ ];
11
12  options.programs.pazi = {
13    enable = mkEnableOption "pazi";
14
15    enableBashIntegration = mkOption {
16      default = true;
17      type = types.bool;
18      description = ''
19        Whether to enable Bash integration.
20      '';
21    };
22
23    enableZshIntegration = mkOption {
24      default = true;
25      type = types.bool;
26      description = ''
27        Whether to enable Zsh integration.
28      '';
29    };
30
31    enableFishIntegration = mkOption {
32      default = true;
33      type = types.bool;
34      description = ''
35        Whether to enable Fish integration.
36      '';
37    };
38  };
39
40  config = mkIf cfg.enable {
41    home.packages = [ pkgs.pazi ];
42
43    programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
44      eval "$(${pkgs.pazi}/bin/pazi init bash)"
45    '';
46
47    programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
48      eval "$(${pkgs.pazi}/bin/pazi init zsh)"
49    '';
50
51    programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
52      ${pkgs.pazi}/bin/pazi init fish | source
53    '';
54  };
55}