Introduced a new file `lib.nix` containing helper functions to streamline user package management and attributes for multi-user configurations. Updated various modules to utilize these functions, enhancing code maintainability and readability.
23 lines
607 B
Nix
23 lines
607 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
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
|
|
metadata-cleaner # remove any metadata and geolocation from files
|
|
pika-backup # backups
|
|
gnome-obfuscate # censor private information
|
|
;
|
|
};
|
|
in userLib.mkUserPackages config.my.toggleUsers.apps packages;
|
|
};
|
|
}
|