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.
22 lines
440 B
Nix
22 lines
440 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
options.my.apps.piano.enable = lib.mkEnableOption "piano learning and music theory apps";
|
|
config = lib.mkIf config.my.apps.piano.enable {
|
|
users.users = let
|
|
packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
neothesia
|
|
linthesia
|
|
timidity
|
|
;
|
|
};
|
|
in inputs.self.lib.mkUserPackages lib config.my.toggleUsers.apps packages;
|
|
};
|
|
}
|