5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
36 lines
996 B
Nix
36 lines
996 B
Nix
# Remote desktop daemon using Pipewire.
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
meta = {
|
|
maintainers = lib.teams.gnome.members;
|
|
};
|
|
|
|
###### interface
|
|
options = {
|
|
services.gnome.gnome-remote-desktop = {
|
|
enable = lib.mkEnableOption "Remote Desktop support using Pipewire";
|
|
};
|
|
};
|
|
|
|
###### implementation
|
|
config = lib.mkIf config.services.gnome.gnome-remote-desktop.enable {
|
|
services.pipewire.enable = true;
|
|
services.dbus.packages = [ pkgs.gnome.gnome-remote-desktop ];
|
|
|
|
environment.systemPackages = [ pkgs.gnome.gnome-remote-desktop ];
|
|
|
|
systemd.packages = [ pkgs.gnome.gnome-remote-desktop ];
|
|
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 = { };
|
|
};
|
|
};
|
|
}
|