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