Add multi-user support for package installations across various modules

Updated multiple configuration files to include a `merge` option for user management, enhancing the ability to handle multi-user setups for applications and services. This change improves flexibility in managing user-specific package installations, ensuring a more streamlined configuration process.
This commit is contained in:
Danilo Reyes
2026-01-16 13:38:49 -06:00
parent cceb4da041
commit f1e6015d39
30 changed files with 67 additions and 30 deletions

View File

@@ -237,6 +237,13 @@ in
}) (inputs.self.lib.normalizeUsers users)
);
getFirstUser = users: if builtins.isString users then users else (builtins.head users);
mergeUsersOption =
lib: _loc: defs:
let
normalize = users: if builtins.isString users then [ users ] else users;
allUsers = lib.foldl' (acc: def: acc ++ (normalize def.value)) [ ] defs;
in
lib.unique allUsers;
};
};
}