Refactor user option types across modules for consistency
Updated multiple configuration files to replace the user option type with a unified `usersOptionType`, enhancing consistency in user management across applications and services. This change simplifies the user configuration process and improves maintainability.
This commit is contained in:
@@ -16,9 +16,8 @@
|
||||
description = "The shell to use system-wide (bash or zsh)";
|
||||
};
|
||||
users = lib.mkOption {
|
||||
type = lib.types.either lib.types.str (lib.types.listOf lib.types.str);
|
||||
type = inputs.self.lib.usersOptionType lib;
|
||||
default = config.my.toggleUsers.shell;
|
||||
merge = inputs.self.lib.mergeUsersOption lib;
|
||||
description = "Users to configure shell for";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -9,9 +9,8 @@
|
||||
options.my.shell.exercism = {
|
||||
enable = lib.mkEnableOption "Exercism coding practice platform";
|
||||
users = lib.mkOption {
|
||||
type = lib.types.either lib.types.str (lib.types.listOf lib.types.str);
|
||||
type = inputs.self.lib.usersOptionType lib;
|
||||
default = config.my.toggleUsers.shell;
|
||||
merge = inputs.self.lib.mergeUsersOption lib;
|
||||
description = "Users to install Exercism for";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -9,9 +9,8 @@
|
||||
options.my.shell.multimedia = {
|
||||
enable = lib.mkEnableOption "multimedia CLI tools and codecs";
|
||||
users = lib.mkOption {
|
||||
type = lib.types.either lib.types.str (lib.types.listOf lib.types.str);
|
||||
type = inputs.self.lib.usersOptionType lib;
|
||||
default = config.my.toggleUsers.shell;
|
||||
merge = inputs.self.lib.mergeUsersOption lib;
|
||||
description = "Users to install multimedia shell tools for";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -12,9 +12,8 @@ in
|
||||
options.my.shell.tools = {
|
||||
enable = lib.mkEnableOption "shell tools and utilities";
|
||||
users = lib.mkOption {
|
||||
type = lib.types.either lib.types.str (lib.types.listOf lib.types.str);
|
||||
type = inputs.self.lib.usersOptionType lib;
|
||||
default = config.my.toggleUsers.shell;
|
||||
merge = inputs.self.lib.mergeUsersOption lib;
|
||||
description = "Users to install shell tools for";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user