nix: add direnv support
This commit is contained in:
parent
5ff31ee917
commit
1c0f00d3c5
2 changed files with 14 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
||||||
13
flake.nix
13
flake.nix
|
|
@ -45,5 +45,18 @@
|
||||||
};
|
};
|
||||||
default = caelestia-shell;
|
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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue