mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 09:08:45 +08:00
13 lines
427 B
Nix
13 lines
427 B
Nix
inputs:
|
|
{
|
|
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)
|
|
{
|
|
programs.chromium = { enable = true; extraOpts.PasswordManagerEnabled = false; };
|
|
};
|
|
}
|