From 9bbb15b5ba6c7a8ca281a23eda72676650b6c9ff Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 23 Aug 2024 19:42:27 +0200 Subject: [PATCH] Make option names more clear --- lib/modules/packages/oh-my-posh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/packages/oh-my-posh.nix b/lib/modules/packages/oh-my-posh.nix index e7fa5242..6495d5fa 100644 --- a/lib/modules/packages/oh-my-posh.nix +++ b/lib/modules/packages/oh-my-posh.nix @@ -8,7 +8,7 @@ themeType = types.submodule ( { config, ... }: { options = { - path = mkOption { + source = mkOption { type = types.path; description = "The path to the oh-my-posh theme to use."; }; @@ -16,7 +16,7 @@ name = mkOption { type = types.nullOr types.str; description = "The name of the theme."; - default = lib.strings.removeSuffix ".omp" (lib.strings.removeSuffix ".json" (builtins.baseNameOf config.path)); + default = lib.strings.removeSuffix ".omp" (lib.strings.removeSuffix ".json" (builtins.baseNameOf config.source)); }; }; });