diff options
author | Rehno Lindeque <errantkid@gmail.com> | 2022-04-06 12:20:39 -0400 |
---|---|---|
committer | Rehno Lindeque <errantkid@gmail.com> | 2022-04-06 12:20:39 -0400 |
commit | b9c969a86667a7b16a7efa1df0e3d090ef2ead72 (patch) | |
tree | f46406110f12859e368178b530440bd11ba27d6a | |
parent | f01e33f283f4ff4e04ccdd4c3692c631cb7290b9 (diff) |
nix flake check: Warn about deprecated nixosModule output
-rw-r--r-- | src/nix/flake.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index ce7dc101a..a876bb3af 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -508,6 +508,7 @@ struct CmdFlakeCheck : FlakeCommand name == "defaultBundler" ? "bundlers.<system>.default" : name == "overlay" ? "overlays.default" : name == "devShell" ? "devShells.<system>.default" : + name == "nixosModule" ? "nixosModules.default" : ""; if (replacement != "") warn("flake output attribute '%s' is deprecated; use '%s' instead", name, replacement); |