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