From 694cd2fc4680ccea939c9569f0a76cf1deaa5d2d Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 2 Jul 2026 11:35:35 +0100 Subject: Add repo validation dev shell --- dot_config/direnv/direnvrc | 8 +++----- dot_config/nix/templates/dev/flake.nix | 14 ++++++++++---- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'dot_config') diff --git a/dot_config/direnv/direnvrc b/dot_config/direnv/direnvrc index 40bfc86..1ecee89 100644 --- a/dot_config/direnv/direnvrc +++ b/dot_config/direnv/direnvrc @@ -1,10 +1,8 @@ # Global direnv runtime config. # -# Loads nix-direnv on demand. nix-direnv is NOT packaged for Arch and we -# refuse to depend on -git AUR packages, so we fetch the loader from -# upstream pinned by version + content hash. direnv caches it under -# $XDG_CACHE_HOME/direnv/, so the network fetch happens exactly once -# per pin bump. +# Load nix-direnv on demand from an upstream URL pinned by content hash. +# direnv caches it under $XDG_CACHE_HOME/direnv/, so the network fetch +# happens exactly once per pin bump. # # To upgrade: bump the version in the URL and replace the sha256 with # the new one. direnv prints the expected hash on mismatch. diff --git a/dot_config/nix/templates/dev/flake.nix b/dot_config/nix/templates/dev/flake.nix index 84b3179..a65ee6a 100644 --- a/dot_config/nix/templates/dev/flake.nix +++ b/dot_config/nix/templates/dev/flake.nix @@ -3,13 +3,18 @@ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = { self, nixpkgs }: + outputs = + { self, nixpkgs }: let - systems = [ "x86_64-linux" "aarch64-linux" ]; + systems = [ + "x86_64-linux" + "aarch64-linux" + ]; forAllSystems = nixpkgs.lib.genAttrs systems; in { - devShells = forAllSystems (system: + devShells = forAllSystems ( + system: let pkgs = nixpkgs.legacyPackages.${system}; in @@ -24,6 +29,7 @@ # Per-project env setup (printed once on shell entry). ''; }; - }); + } + ); }; } -- cgit v1.3.1