mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 09:36:10 +02:00
modules/context: flake
option, provides access to our flake
This commit is contained in:
parent
7391dc14ca
commit
9487403532
3 changed files with 16 additions and 4 deletions
|
@ -1,6 +1,20 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
isFlake = x: x._type or null == "flake";
|
||||
flakeType = lib.types.addCheck lib.types.path isFlake // {
|
||||
name = "flake";
|
||||
description = "flake";
|
||||
};
|
||||
in
|
||||
{
|
||||
options = {
|
||||
flake = lib.mkOption {
|
||||
type = flakeType;
|
||||
description = ''
|
||||
Nixvim's flake.
|
||||
'';
|
||||
internal = true;
|
||||
};
|
||||
isTopLevel = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue