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:
@@ -15,9 +15,8 @@ in
|
||||
options.my.services.printing = {
|
||||
enable = lib.mkEnableOption "printing services and drivers";
|
||||
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.services;
|
||||
merge = inputs.self.lib.mergeUsersOption lib;
|
||||
description = "Users to install printing packages for";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user