feat(ui): add .lock attribute

This allows updating the lock file via `nix run .#{package}.lock` instead of ` nix run .#{package}.config.lock.refresh`

This is better as it's shorter, and the keyword `lock` is widely understood to lock dependencies.
This commit is contained in:
DavHau 2023-09-12 00:30:00 +02:00
parent 08d414a359
commit 2ab0222416

View File

@ -5,4 +5,10 @@
config.public.name = config.name; config.public.name = config.name;
config.public.version = config.version; config.public.version = config.version;
config.public.${
if config ? lock
then "lock"
else null
} =
config.lock.refresh;
} }