aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-11-11 21:29:18 -0500
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2021-11-11 21:31:26 -0500
commitc1dea92dd6fb5c07127bcf43d8c76d8a59470d7a (patch)
tree7ce5aa01abe23ec75473a13a6d1e7a7b8f0686eb /src/nix
parent52a3b2ee6367306a3f17fe9a2d0e2e4096852e05 (diff)
nix key: Fix error message and don't require flakes
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/sigs.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nix/sigs.cc b/src/nix/sigs.cc
index 6a238efbe..3d659d6d2 100644
--- a/src/nix/sigs.cc
+++ b/src/nix/sigs.cc
@@ -218,8 +218,7 @@ struct CmdKey : NixMultiCommand
void run() override
{
if (!command)
- throw UsageError("'nix flake' requires a sub-command.");
- settings.requireExperimentalFeature(Xp::Flakes);
+ throw UsageError("'nix key' requires a sub-command.");
command->second->prepare();
command->second->run();
}