aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-07-02 11:35:35 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-07-02 11:35:35 +0100
commit694cd2fc4680ccea939c9569f0a76cf1deaa5d2d (patch)
treecaee9e596c64c4f0655e4ccc4b6ed8fc55e027dd /dot_config
parent8200f2d7cf9fe8ff0fa72701494e598daab6340e (diff)
downloaddotfiles-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/direnvrc8
-rw-r--r--dot_config/nix/templates/dev/flake.nix14
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).
'';
};
- });
+ }
+ );
};
}