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:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
@@ -8,7 +9,6 @@
|
||||
options.my.apps.misc.enable = lib.mkEnableOption "miscellaneous desktop applications";
|
||||
config = lib.mkIf config.my.apps.misc.enable {
|
||||
users.users = let
|
||||
userLib = import ../lib.nix { inherit lib; };
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
blanket # background noise
|
||||
@@ -17,6 +17,6 @@
|
||||
gnome-obfuscate # censor private information
|
||||
;
|
||||
};
|
||||
in userLib.mkUserPackages config.my.toggleUsers.apps packages;
|
||||
in inputs.self.lib.mkUserPackages lib config.my.toggleUsers.apps packages;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user