Refactor user management functions to use inputs

Removed the `lib.nix` file and refactored various modules to utilize `inputs.self.lib` for user package and attribute management. This change enhances consistency and maintainability across the configuration files.
This commit is contained in:
Danilo Reyes
2026-01-16 10:55:15 -06:00
parent b89d193445
commit 495f6e2e25
31 changed files with 67 additions and 122 deletions

View File

@@ -1,5 +1,6 @@
{
config,
inputs,
lib,
pkgs,
...
@@ -9,7 +10,6 @@
config = lib.mkIf config.my.apps.office.enable {
environment.variables.CALIBRE_USE_SYSTEM_THEME = "1";
users.users = let
userLib = import ../lib.nix { inherit lib; };
packages = builtins.attrValues {
inherit (pkgs)
jre17_minimal # for libreoffice extensions
@@ -20,6 +20,6 @@
# planify # let's pretend I will organize my tasks
;
};
in userLib.mkUserPackages config.my.toggleUsers.apps packages;
in inputs.self.lib.mkUserPackages lib config.my.toggleUsers.apps packages;
};
}