mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
lazygit: add package option (#3456)
This commit is contained in:
committed by
GitHub
parent
b7eb400d41
commit
7d55a72d4c
@@ -16,6 +16,8 @@ in {
|
||||
options.programs.lazygit = {
|
||||
enable = mkEnableOption "lazygit, a simple terminal UI for git commands";
|
||||
|
||||
package = mkPackageOption pkgs "lazygit" { };
|
||||
|
||||
settings = mkOption {
|
||||
type = yamlFormat.type;
|
||||
default = { };
|
||||
@@ -41,7 +43,7 @@ in {
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ pkgs.lazygit ];
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
home.file."Library/Application Support/lazygit/config.yml" =
|
||||
mkIf (cfg.settings != { } && isDarwin) {
|
||||
|
||||
Reference in New Issue
Block a user