working overlay to get latest version of lazygit
This commit is contained in:
14
flake.nix
14
flake.nix
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
@@ -14,7 +13,6 @@
|
|||||||
|
|
||||||
# utils
|
# utils
|
||||||
tmux
|
tmux
|
||||||
lazygit
|
|
||||||
bottom
|
bottom
|
||||||
ripgrep
|
ripgrep
|
||||||
jq
|
jq
|
||||||
|
|||||||
@@ -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;
|
||||||
|
# });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user