wrappers: simplify modules

This commit is contained in:
Matt Sturgeon 2024-07-02 15:06:39 +01:00 committed by MattSturgeon
parent 6252a41fc6
commit 3d96960348
7 changed files with 30 additions and 18 deletions

View file

@ -0,0 +1,8 @@
{ lib, ... }:
{
imports = [ ./enable.nix ];
config = {
wrapRc = lib.mkForce true;
};
}

View file

@ -0,0 +1,4 @@
{ lib, ... }:
{
options.enable = lib.mkEnableOption "nixvim";
}

View file

@ -1,8 +1,7 @@
{ lib }:
{ lib, ... }:
with lib;
{
options = {
enable = mkEnableOption "nixvim";
defaultEditor = mkEnableOption "nixvim as the default editor";
vimdiffAlias = mkOption {
@ -13,4 +12,6 @@ with lib;
'';
};
};
imports = [ ./enable.nix ];
}

View file

@ -0,0 +1,12 @@
{ lib, ... }:
{
options = {
defaultEditor = lib.mkEnableOption "nixvim as the default editor";
};
imports = [ ./enable.nix ];
config = {
wrapRc = lib.mkForce true;
};
}