aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-04-26 01:38:19 -0700
committerCaroline Larimore <caroline@larimo.re>2025-04-26 01:38:19 -0700
commit0b5e20158e6981f746748a81ed668a0d5af56451 (patch)
tree8ad982007e384b5f547e380f4a99ddde07527dbd
parent730f0dc30daf815c35ac71ab0c8c1a0113e05ef3 (diff)
home: rename theme name option
-rw-r--r--modules/home/desktop/default.nix2
-rw-r--r--modules/home/desktop/theme/gruvbox/default.nix3
-rw-r--r--modules/home/tools/vim/default.nix2
3 files changed, 3 insertions, 4 deletions
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