mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
40 lines
576 B
Nix
40 lines
576 B
Nix
# GLib Networking
|
|
|
|
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
meta = {
|
|
teams = [ lib.teams.gnome ];
|
|
};
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome.glib-networking = {
|
|
|
|
enable = lib.mkEnableOption "network extensions for GLib";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
###### implementation
|
|
|
|
config = lib.mkIf config.services.gnome.glib-networking.enable {
|
|
|
|
services.dbus.packages = [ pkgs.glib-networking ];
|
|
|
|
systemd.packages = [ pkgs.glib-networking ];
|
|
|
|
environment.sessionVariables.GIO_EXTRA_MODULES = [ "${pkgs.glib-networking.out}/lib/gio/modules" ];
|
|
|
|
};
|
|
|
|
}
|