mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
wrappers/modules: move enable
to shared.nix
We may end up having additional "shared" options and/or config.
This commit is contained in:
parent
c693500a72
commit
574ae92a43
5 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
imports = [ ./enable.nix ];
|
imports = [ ./shared.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
options.enable = lib.mkEnableOption "nixvim";
|
|
||||||
}
|
|
|
@ -12,7 +12,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ ./enable.nix ];
|
imports = [ ./shared.nix ];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
wrapRc = lib.mkOptionDefault false;
|
wrapRc = lib.mkOptionDefault false;
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
defaultEditor = lib.mkEnableOption "nixvim as the default editor";
|
defaultEditor = lib.mkEnableOption "nixvim as the default editor";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [ ./enable.nix ];
|
imports = [ ./shared.nix ];
|
||||||
}
|
}
|
||||||
|
|
6
wrappers/modules/shared.nix
Normal file
6
wrappers/modules/shared.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
enable = lib.mkEnableOption "nixvim";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue