From 0b5e20158e6981f746748a81ed668a0d5af56451 Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Sat, 26 Apr 2025 01:38:19 -0700 Subject: home: rename theme name option --- modules/home/desktop/default.nix | 2 +- modules/home/desktop/theme/gruvbox/default.nix | 3 +-- modules/home/tools/vim/default.nix | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/home') diff --git a/modules/home/desktop/default.nix b/modules/home/desktop/default.nix index 6b2ab79..f2204ef 100644 --- a/modules/home/desktop/default.nix +++ b/modules/home/desktop/default.nix @@ -4,7 +4,7 @@ with lib; with lib.${namespace}; let cfg = config.${namespace}.desktop; themeType = with types; submodule { options = { - name = mkOption { + vim = mkOption { type = str; }; diff --git a/modules/home/desktop/theme/gruvbox/default.nix b/modules/home/desktop/theme/gruvbox/default.nix index 7b0aa9d..f93b0dc 100644 --- a/modules/home/desktop/theme/gruvbox/default.nix +++ b/modules/home/desktop/theme/gruvbox/default.nix @@ -2,8 +2,7 @@ with lib; with lib.${namespace}; { cxl.desktop.themes."gruvbox" = { - #TODO: grab this from attr name somehow - name = "gruvbox"; + vim = "gruvbox"; gtk = { package = pkgs.gruvbox-gtk-theme; diff --git a/modules/home/tools/vim/default.nix b/modules/home/tools/vim/default.nix index b07f8d4..192cf06 100644 --- a/modules/home/tools/vim/default.nix +++ b/modules/home/tools/vim/default.nix @@ -16,7 +16,7 @@ in { set termguicolors set background=dark - colorscheme ${theme.name} + colorscheme ${theme.vim} syntax on -- cgit v1.2.3