mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 16:59:47 +01:00
lazygit: add package option (#3456)
This commit is contained in:
parent
b7eb400d41
commit
7d55a72d4c
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,8 @@ in {
|
||||||
options.programs.lazygit = {
|
options.programs.lazygit = {
|
||||||
enable = mkEnableOption "lazygit, a simple terminal UI for git commands";
|
enable = mkEnableOption "lazygit, a simple terminal UI for git commands";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "lazygit" { };
|
||||||
|
|
||||||
settings = mkOption {
|
settings = mkOption {
|
||||||
type = yamlFormat.type;
|
type = yamlFormat.type;
|
||||||
default = { };
|
default = { };
|
||||||
|
@ -41,7 +43,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.lazygit ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
home.file."Library/Application Support/lazygit/config.yml" =
|
home.file."Library/Application Support/lazygit/config.yml" =
|
||||||
mkIf (cfg.settings != { } && isDarwin) {
|
mkIf (cfg.settings != { } && isDarwin) {
|
||||||
|
|
Loading…
Reference in a new issue