nixos/modules/packages/chromium.nix

13 lines
427 B
Nix
Raw Normal View History

2024-04-25 15:16:32 +08:00
inputs:
{
2024-08-03 17:40:11 +08:00
options.nixos.packages.chromium = let inherit (inputs.lib) mkOption types; in mkOption
{
type = types.nullOr (types.submodule {});
default = if inputs.config.nixos.system.gui.enable then {} else null;
};
config = let inherit (inputs.config.nixos.packages) chromium; in inputs.lib.mkIf (chromium != null)
2024-04-25 15:16:32 +08:00
{
programs.chromium = { enable = true; extraOpts.PasswordManagerEnabled = false; };
};
}