From 9e16f53a0e31778e63b1c814d53d27360a1da8ae Mon Sep 17 00:00:00 2001 From: Thomas Kosiewski Date: Fri, 13 Feb 2026 10:12:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20feat:=20add=20lazygit=20alias=20?= =?UTF-8?q?and=20nix=20formatter=20to=20devshell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds lazygit to the Nix dev shell package set, defines an `lg` alias for `lazygit` in shellHook, and exposes a flake formatter output for `nix fmt`. --- _Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.00`_ --- flake.nix | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index e5123383..30523b8c 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,8 @@ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = { self, nixpkgs }: + outputs = + { self, nixpkgs }: let supportedSystems = [ "x86_64-linux" @@ -12,13 +13,14 @@ "aarch64-darwin" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; - in { - devShells = forAllSystems (system: + in + { + devShells = forAllSystems ( + system: let pkgs = import nixpkgs { inherit system; - config.allowUnfreePredicate = pkg: - builtins.elem (nixpkgs.lib.getName pkg) [ "terraform" ]; + config.allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [ "terraform" ]; }; docsPython = pkgs.python3.withPackages (ps: [ ps.mkdocs @@ -31,12 +33,14 @@ kns = pkgs.writeShellScriptBin "kns" '' exec ${pkgs.kubectx}/bin/kubens "$@" ''; - in { + in + { default = pkgs.mkShell { packages = with pkgs; [ go gnumake git + lazygit # Kubernetes dev/demo tools kubectl @@ -57,11 +61,22 @@ govulncheck docsPython - - yazi + yazi ]; + + shellHook = '' + alias lg='lazygit' + ''; }; } ); + + formatter = forAllSystems ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + pkgs.nixfmt + ); }; }