2019-04-08 20:11:59 +01:00
|
|
|
# GLib Networking
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2021-05-07 22:18:14 +01:00
|
|
|
# Added 2021-05-07
|
|
|
|
imports = [
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "glib-networking" "enable" ]
|
|
|
|
[ "services" "gnome" "glib-networking" "enable" ]
|
|
|
|
)
|
|
|
|
];
|
|
|
|
|
2019-04-08 20:11:59 +01:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2021-05-07 22:18:14 +01:00
|
|
|
services.gnome.glib-networking = {
|
2019-04-08 20:11:59 +01:00
|
|
|
|
|
|
|
enable = mkEnableOption "network extensions for GLib";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2021-05-07 22:18:14 +01:00
|
|
|
config = mkIf config.services.gnome.glib-networking.enable {
|
2019-04-08 20:11:59 +01:00
|
|
|
|
2019-09-02 12:53:11 +01:00
|
|
|
services.dbus.packages = [ pkgs.glib-networking ];
|
2019-04-08 20:11:59 +01:00
|
|
|
|
2019-09-02 12:53:11 +01:00
|
|
|
systemd.packages = [ pkgs.glib-networking ];
|
2019-04-08 20:11:59 +01:00
|
|
|
|
2019-09-02 12:53:11 +01:00
|
|
|
environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.glib-networking.out}/lib/gio/modules" ];
|
2019-04-08 20:11:59 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|