2020-04-24 23:36:52 +00:00
|
|
|
# GNOME User Share daemon.
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
imports = [
|
|
|
|
# Added 2021-05-07
|
|
|
|
(mkRenamedOptionModule
|
|
|
|
[ "services" "gnome3" "gnome-user-share" "enable" ]
|
|
|
|
[ "services" "gnome" "gnome-user-share" "enable" ]
|
|
|
|
)
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
services.gnome.gnome-user-share = {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enable = mkEnableOption "GNOME User Share, a user-level file sharing service for GNOME";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
config = mkIf config.services.gnome.gnome-user-share.enable {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
environment.systemPackages = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pkgs.gnome.gnome-user-share
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
systemd.packages = [
|
2021-05-20 23:08:51 +00:00
|
|
|
pkgs.gnome.gnome-user-share
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|