nixos/chromium: Make programs.chromium.enable install chromium
This commit is contained in:
parent
5544b2785f
commit
93b6400ff5
@ -19,6 +19,8 @@ in
|
||||
programs.chromium = {
|
||||
enable = lib.mkEnableOption "{command}`chromium` policies";
|
||||
|
||||
package = lib.mkPackageOption pkgs "chromium" { };
|
||||
|
||||
enablePlasmaBrowserIntegration = lib.mkEnableOption "Native Messaging Host for Plasma Browser Integration";
|
||||
|
||||
plasmaBrowserIntegrationPackage = lib.mkPackageOption pkgs [ "plasma5Packages" "plasma-browser-integration" ] { };
|
||||
@ -119,8 +121,9 @@ in
|
||||
|
||||
###### implementation
|
||||
|
||||
config = {
|
||||
environment.etc = lib.mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
environment.etc = {
|
||||
# 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"; };
|
||||
|
Loading…
Reference in New Issue
Block a user