diff options
| author | 2026-07-02 11:35:35 +0100 | |
|---|---|---|
| committer | 2026-07-02 11:35:35 +0100 | |
| commit | 694cd2fc4680ccea939c9569f0a76cf1deaa5d2d (patch) | |
| tree | caee9e596c64c4f0655e4ccc4b6ed8fc55e027dd /dot_config | |
| parent | 8200f2d7cf9fe8ff0fa72701494e598daab6340e (diff) | |
| download | dotfiles-694cd2fc4680ccea939c9569f0a76cf1deaa5d2d.tar.gz dotfiles-694cd2fc4680ccea939c9569f0a76cf1deaa5d2d.tar.bz2 dotfiles-694cd2fc4680ccea939c9569f0a76cf1deaa5d2d.zip | |
Add repo validation dev shell
Diffstat (limited to 'dot_config')
| -rw-r--r-- | dot_config/direnv/direnvrc | 8 | ||||
| -rw-r--r-- | dot_config/nix/templates/dev/flake.nix | 14 |
2 files changed, 13 insertions, 9 deletions
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). ''; }; - }); + } + ); }; } |
