2021-05-20 23:08:51 +00:00
|
|
|
# Remote desktop daemon using Pipewire.
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = lib.teams.gnome.members;
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.gnome.gnome-remote-desktop = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkEnableOption "Remote Desktop support using Pipewire";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf config.services.gnome.gnome-remote-desktop.enable {
|
2021-05-20 23:08:51 +00:00
|
|
|
services.pipewire.enable = true;
|
2024-05-15 15:35:15 +00:00
|
|
|
services.dbus.packages = [ pkgs.gnome.gnome-remote-desktop ];
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.gnome.gnome-remote-desktop ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
systemd.packages = [ pkgs.gnome.gnome-remote-desktop ];
|
2024-05-15 15:35:15 +00:00
|
|
|
systemd.tmpfiles.packages = [ pkgs.gnome.gnome-remote-desktop ];
|
|
|
|
|
|
|
|
# TODO: if possible, switch to using provided g-r-d sysusers.d
|
|
|
|
users = {
|
|
|
|
users.gnome-remote-desktop = {
|
|
|
|
isSystemUser = true;
|
|
|
|
group = "gnome-remote-desktop";
|
|
|
|
home = "/var/lib/gnome-remote-desktop";
|
|
|
|
};
|
|
|
|
groups.gnome-remote-desktop = { };
|
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|