mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
nix key: Fix error message and don't require flakes
This commit is contained in:
parent
52a3b2ee63
commit
c1dea92dd6
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue