Updated multiple configuration files to replace the user option type with a unified `usersOptionType`, enhancing consistency in user management across applications and services. This change simplifies the user configuration process and improves maintainability.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
options.my.apps.office = {
|
|
enable = lib.mkEnableOption "office applications and productivity tools";
|
|
users = lib.mkOption {
|
|
type = inputs.self.lib.usersOptionType lib;
|
|
default = config.my.toggleUsers.apps;
|
|
description = "Users to install office packages for";
|
|
};
|
|
};
|
|
config = lib.mkIf config.my.apps.office.enable {
|
|
environment.variables.CALIBRE_USE_SYSTEM_THEME = "1";
|
|
users.users =
|
|
let
|
|
packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
jre17_minimal # for libreoffice extensions
|
|
libreoffice # office, but based & european
|
|
calibre # ugly af eBook library manager
|
|
newsflash # feed reader, syncs with nextcloud
|
|
furtherance # I packaged this one tehee track time utility
|
|
# planify # let's pretend I will organize my tasks
|
|
;
|
|
};
|
|
in
|
|
inputs.self.lib.mkUserPackages lib config.my.apps.office.users packages;
|
|
};
|
|
}
|