Skip to content

Commit 9c8b287

Browse files
committed
devenv: fix missing git option regression
Fixes the feature check for the new git option, making the new CLI comptatible with older module revisions.
1 parent f0ea46e commit 9c8b287

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

devenv/src/flake.tmpl.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@
7878
_module.args.pkgs = pkgs.appendOverlays (config.overlays or [ ]);
7979
})
8080
(inputs.devenv.modules + /top-level.nix)
81-
{
82-
devenv.cliVersion = version;
83-
devenv.root = devenv_root;
84-
devenv.dotfile = devenv_dotfile;
85-
}
8681
({ options, ... }: {
8782
config.devenv = lib.mkMerge [
83+
{
84+
cliVersion = version;
85+
root = devenv_root;
86+
dotfile = devenv_dotfile;
87+
}
8888
(pkgs.lib.optionalAttrs (builtins.hasAttr "tmpdir" options.devenv) {
8989
tmpdir = devenv_tmpdir;
9090
})
@@ -100,9 +100,9 @@
100100
];
101101
})
102102
({ options, ... }: {
103-
config.git = lib.mkMerge [
103+
config = lib.mkMerge [
104104
(pkgs.lib.optionalAttrs (builtins.hasAttr "git" options) {
105-
root = git_root;
105+
git.root = git_root;
106106
})
107107
];
108108
})

0 commit comments

Comments
 (0)