modules: cleanup with lib

This commit is contained in:
Austin Horstman 2024-08-30 14:37:41 -05:00
parent ff042dfc93
commit 1c9ba58aef
No known key found for this signature in database
12 changed files with 79 additions and 85 deletions

View file

@ -1,15 +1,14 @@
{ config, lib, ... }:
with lib;
{
options = {
colorscheme = mkOption {
type = types.nullOr types.str;
colorscheme = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "The name of the colorscheme to use";
default = null;
};
};
config = mkIf (config.colorscheme != "" && config.colorscheme != null) {
config = lib.mkIf (config.colorscheme != "" && config.colorscheme != null) {
extraConfigVim = ''
colorscheme ${config.colorscheme}
'';