treewide: cleanup

This commit is contained in:
raf 2023-11-06 12:33:38 +03:00
commit c1f449137f
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
9 changed files with 220 additions and 197 deletions

View file

@ -2,9 +2,9 @@
lib,
config,
...
}:
with lib;
with builtins; let
}: let
inherit (lib) optionalString mkIf nvim;
cfg = config.vim;
in {
config = {
@ -57,8 +57,8 @@ in {
};
vim.configRC.basic = nvim.dag.entryAfter ["globalsScript"] ''
" Debug mode settings
${optionalString cfg.debugMode.enable ''
" Debug mode settings
set verbose=${toString cfg.debugMode.level}
set verbosefile=${cfg.debugMode.logFile}
''}

View file

@ -2,9 +2,10 @@
pkgs,
lib,
...
}:
with lib;
with builtins; {
}: let
inherit (lib) mkEnableOption mkOption;
inherit (lib.types) types;
in {
options.vim = {
package = mkOption {
type = types.package;