meta: add flake-compat & expose flakeless interface

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964afc8b84fe10106f0a90d4bf3acaeee85
This commit is contained in:
raf 2025-07-20 13:37:42 +03:00
commit c1fea30214
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 72 additions and 14 deletions

7
shell.nix Normal file
View file

@ -0,0 +1,7 @@
# Make the behaviour of `nix-shell` consistent with the one of `nix develop`
# by returning the default devShell output from the flake. This is useful when
# I do not want to work with direnv, or simply need backwards compatibility.
{system ? builtins.currentSystem}: let
nvf = import ./.;
in
nvf.devShells.${system}.default