about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/services/desktops/gnome3/glib-networking.nix
blob: 7e667b6b1f04742362df7eb8657f082205022294 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# GLib Networking

{ config, pkgs, lib, ... }:

with lib;

{

  meta = {
    maintainers = teams.gnome.members;
  };

  ###### interface

  options = {

    services.gnome3.glib-networking = {

      enable = mkEnableOption "network extensions for GLib";

    };

  };

  ###### implementation

  config = mkIf config.services.gnome3.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" ];

  };

}