nix: add direnv support

This commit is contained in:
Soramane 2025-07-16 16:44:16 +10:00
parent 5ff31ee917
commit 1c0f00d3c5
2 changed files with 14 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

View file

@ -45,5 +45,18 @@
};
default = caelestia-shell;
});
devShells = forAllSystems (pkgs: {
default = let
shell = self.packages.${pkgs.system}.caelestia-shell;
in
pkgs.mkShellNoCC {
inputsFrom = [shell];
packages = [pkgs.material-symbols];
shellHook = ''
export CAELESTIA_BD_PATH=${shell}/bin/beat_detector
'';
};
});
};
}