working overlay to get latest version of lazygit

This commit is contained in:
2025-10-22 08:19:52 -04:00
parent 5ab19d093a
commit 5a59f98ebc
5 changed files with 39 additions and 18 deletions

View File

@@ -29,10 +29,18 @@
inherit userName userEmail ghostty; inherit userName userEmail ghostty;
}; };
myOverlays = { ... }: {
nixpkgs.overlays = [
self.common.overlays
];
};
in { in {
meta = import ./meta; meta = import ./meta;
common = {
overlays = import ./modules/common/overlays.nix;
};
# Primary laptop - MacBook Pro (2023, M3) # Primary laptop - MacBook Pro (2023, M3)
darwinConfigurations."sephiroth" = darwin.lib.darwinSystem { darwinConfigurations."sephiroth" = darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
@@ -42,6 +50,7 @@
role = "devel"; role = "devel";
}; };
modules = [ modules = [
myOverlays
./modules/common ./modules/common
./modules/machine/sephiroth ./modules/machine/sephiroth
@@ -64,6 +73,7 @@
role = "devel"; role = "devel";
}; };
modules = [ modules = [
myOverlays
nix-flatpak.nixosModules.nix-flatpak nix-flatpak.nixosModules.nix-flatpak
./modules/common ./modules/common
./modules/machine/cloud ./modules/machine/cloud
@@ -89,6 +99,7 @@
role = "server"; role = "server";
}; };
modules = [ modules = [
myOverlays
./modules/common ./modules/common
./modules/machine/valefor ./modules/machine/valefor
@@ -113,6 +124,7 @@
role = "server"; role = "server";
}; };
# modules = [ # modules = [
# myOverlays
# nix-flatpak.nixosModules.nix-flatpak # nix-flatpak.nixosModules.nix-flatpak
# nix-ld.nixosModules.nix-ld # nix-ld.nixosModules.nix-ld
# ./modules/nixos/hardware-configuration.nix # ./modules/nixos/hardware-configuration.nix

View File

@@ -27,6 +27,7 @@ in {
./browser.nix ./browser.nix
./zellij.nix ./zellij.nix
./bat.nix ./bat.nix
./lazygit.nix
]; ];
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the

View File

@@ -1,17 +1,7 @@
{ pkgs, ... }: let { pkgs, ... }: {
in {
programs.lazygit = { programs.lazygit = {
enable = true; enable = true;
package = pkgs.lazygit.overrideAttrs (oldAttrs: rec { package = pkgs.lazygitLatest;
version = "0.55.1";
src = pkgs.fetchFromGitHub {
owner = "jesseduffield";
repo = "lazygit";
rev = "v${version}";
hash = pkgs.lib.fakeHash;
};
});
settings = { settings = {
gui.theme = { gui.theme = {

View File

@@ -1,5 +1,4 @@
{ {
lib,
pkgs, pkgs,
... ...
}: { }: {
@@ -14,7 +13,6 @@
# utils # utils
tmux tmux
lazygit
bottom bottom
ripgrep ripgrep
jq jq

View File

@@ -1,5 +1,25 @@
{ pkgs, ... }: let _: prev: {
lazygitLatest = prev.lazygit.overrideAttrs (_: rec {
in { version = "0.55.1";
src = prev.fetchFromGitHub {
owner = "jesseduffield";
repo = "lazygit";
rev = "v${version}";
hash = "sha256-UofhgILZhVXnYiGpb25m4Ct4sbu5pRmjVgj3oEf5Uyk=";
};
});
# atuin = prev.atuin.overrideAttrs (oldAttrs: rec {
# version = "18.10.0";
#
# src = prev.fetchFromGitHub {
# owner = "atuinsh";
# repo = "atuin";
# rev = "v${version}";
# hash = "sha256-bfSa3RtVXxHt3usDqqpE/oXKKDUZOrf+tD9uL59fr6M=";
# };
#
# # cargoDeps = null;
# cargoHash = prev.lib.fakeSha256;
# });
} }