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