From 3aae307e2a303dc6c960abf910bdf03acb120b7c 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/packages/oh-my-posh.nix b/lib/modules/packages/oh-my-posh.nix index 3d850944..b2467c3d 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.nullOr types.path; description = "The path to the oh-my-posh theme to use."; default = null; @@ -17,9 +17,9 @@ name = mkOption { type = types.nullOr types.str; description = "The name of the theme."; - default = if (config.path != null) + default = if (config.source != null) then - lib.strings.removeSuffix ".omp" (lib.strings.removeSuffix ".json" (builtins.baseNameOf config.path)) + lib.strings.removeSuffix ".omp" (lib.strings.removeSuffix ".json" (builtins.baseNameOf config.source)) else null; };