mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
5b2b3b8558
The can potentially mask evaluation errors due to laziness of variable access within.
36 lines
578 B
Nix
36 lines
578 B
Nix
# GLib Networking
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
meta = {
|
|
maintainers = lib.teams.gnome.members;
|
|
};
|
|
|
|
###### 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" ];
|
|
|
|
};
|
|
|
|
}
|