Merge pull request #334726 from networkException/revert-programs-chromium-package

nixos/chromium: revert having `programs.chromium.enable` insert `pkgs.chromium` into the system closure
This commit is contained in:
Emily 2024-08-15 14:22:13 +02:00 committed by GitHub
commit f651cf8481
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,9 +17,7 @@ in
options = {
programs.chromium = {
enable = lib.mkEnableOption "the {command}`chromium` web browser";
package = lib.mkPackageOption pkgs "chromium" { };
enable = lib.mkEnableOption "{command}`chromium` policies";
enablePlasmaBrowserIntegration = lib.mkEnableOption "Native Messaging Host for Plasma Browser Integration";
@ -121,9 +119,8 @@ in
###### implementation
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
environment.etc = {
config = {
environment.etc = lib.mkIf cfg.enable {
# for chromium
"chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json" = lib.mkIf cfg.enablePlasmaBrowserIntegration
{ source = "${cfg.plasmaBrowserIntegrationPackage}/etc/chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json"; };