mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
468cb5980b
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
46 lines
757 B
Nix
46 lines
757 B
Nix
# GLib Networking
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
|
|
# Added 2021-05-07
|
|
imports = [
|
|
(mkRenamedOptionModule
|
|
[ "services" "gnome3" "glib-networking" "enable" ]
|
|
[ "services" "gnome" "glib-networking" "enable" ]
|
|
)
|
|
];
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome.glib-networking = {
|
|
|
|
enable = mkEnableOption "network extensions for GLib";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.gnome.glib-networking.enable {
|
|
|
|
services.dbus.packages = [ pkgs.glib-networking ];
|
|
|
|
systemd.packages = [ pkgs.glib-networking ];
|
|
|
|
environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.glib-networking.out}/lib/gio/modules" ];
|
|
|
|
};
|
|
|
|
}
|