Make option names more clear
This commit is contained in:
parent
ba70754bf3
commit
9bbb15b5ba
|
@ -8,7 +8,7 @@
|
||||||
themeType = types.submodule (
|
themeType = types.submodule (
|
||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
path = mkOption {
|
source = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
description = "The path to the oh-my-posh theme to use.";
|
description = "The path to the oh-my-posh theme to use.";
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = types.nullOr types.str;
|
type = types.nullOr types.str;
|
||||||
description = "The name of the theme.";
|
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));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue