feat(flake): remove impurity, update nix-direnv

Use path as an input that can be overriden automatically when direnv is
in use.
nix-direnv version present in .envrc has been updated, using watch_file on the flake is already handled.
This commit is contained in:
xarvex
2024-08-30 14:44:13 -05:00
parent 4b35df0924
commit bc38e568fa
3 changed files with 42 additions and 20 deletions

View File

@@ -4,6 +4,11 @@
inputs = {
devenv.url = "github:cachix/devenv";
devenv-root = {
url = "file+file:///dev/null";
flake = false;
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
@@ -53,9 +58,14 @@
#
# Thank you! -Xarvex
name = "TagStudio";
devenv.root =
let
devenvRoot = builtins.readFile inputs.devenv-root.outPath;
in
# If not overriden (/dev/null), --impure is necessary.
pkgs.lib.mkIf (devenvRoot != "") devenvRoot;
dotenv.disableHint = true;
name = "TagStudio";
# Derived from previous flake iteration.
packages = (with pkgs; [