at 18.09-beta 896 B view raw
1# GNOME User Share daemon. 2 3{ config, pkgs, lib, ... }: 4 5with lib; 6 7{ 8 9 ###### interface 10 11 options = { 12 13 services.gnome3.gnome-user-share = { 14 15 enable = mkOption { 16 type = types.bool; 17 default = false; 18 description = '' 19 Whether to enable GNOME User Share, a service that exports the 20 contents of the Public folder in your home directory on the local network. 21 ''; 22 }; 23 24 }; 25 26 }; 27 28 29 ###### implementation 30 31 config = mkIf config.services.gnome3.gnome-user-share.enable { 32 33 environment.systemPackages = [ pkgs.gnome3.gnome-user-share ]; 34 35 services.xserver.displayManager.sessionCommands = with pkgs.gnome3; '' 36 # Don't let gnome-control-center depend upon gnome-user-share 37 export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${gnome-user-share}/share/gsettings-schemas/${gnome-user-share.name} 38 ''; 39 40 }; 41 42}