Skip to content

Commit

Permalink
Merge pull request #717 from Atry/patch-4
Browse files Browse the repository at this point in the history
Make devenv.root be overridable
  • Loading branch information
domenkozar authored Jul 11, 2023
2 parents b63bdb5 + c290c3f commit 36a7bb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/top-level.nix
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ in

config = {
# TODO: figure out how to get relative path without impure mode
devenv.root =
devenv.root = lib.mkDefault (
let
pwd = builtins.getEnv "PWD";
in
Expand All @@ -157,7 +157,8 @@ in
See https://devenv.sh/guides/using-with-flakes/
''
else pwd;
else pwd
);
devenv.dotfile = config.devenv.root + "/.devenv";
devenv.state = config.devenv.dotfile + "/state";
devenv.profile = profile;
Expand Down

0 comments on commit 36a7bb5

Please sign in to comment.