aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/lazygit.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-09 17:40:46 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-09 17:40:46 +0000
commita45c4551712c1ba5cb82eaf290f311ab0e8690e4 (patch)
treef62b23489fb31f8ea58fef77f99619efd784eb36 /modules/terminal/system/programs/lazygit.nix
big changes
Diffstat (limited to 'modules/terminal/system/programs/lazygit.nix')
-rw-r--r--modules/terminal/system/programs/lazygit.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/terminal/system/programs/lazygit.nix b/modules/terminal/system/programs/lazygit.nix
new file mode 100644
index 0000000..4c048a0
--- /dev/null
+++ b/modules/terminal/system/programs/lazygit.nix
@@ -0,0 +1,26 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.terminal.programs.lazygit;
+ yaml' = pkgs.formats.yaml {};
+
+ settings = yaml'.generate "config.yml" {
+ git.paging.pager = "${pkgs.diff-so-fancy}/bin/diff-so-fancy";
+ gui = {
+ showRandomTip = false;
+ commitLength.show = false;
+ };
+ };
+in
+ lib.mkIf cfg.enable {
+ hjem.users."${config.collinux.user.name}" = {
+ files = {
+ ".config/lazygit/config.yml".source = settings;
+ };
+
+ packages = [pkgs.lazygit];
+ };
+ }