vuls: init at 0.27.0
[NixPkgs.git] / nixos / modules / services / desktops / gnome / gnome-remote-desktop.nix
blob8ffb4a201e367f7bf5d331f2e97ac0e42bac8fc5
1 # Remote desktop daemon using Pipewire.
2 { config, lib, pkgs, ... }:
5   meta = {
6     maintainers = lib.teams.gnome.members;
7   };
9   ###### interface
10   options = {
11     services.gnome.gnome-remote-desktop = {
12       enable = lib.mkEnableOption "Remote Desktop support using Pipewire";
13     };
14   };
16   ###### implementation
17   config = lib.mkIf config.services.gnome.gnome-remote-desktop.enable {
18     services.pipewire.enable = true;
19     services.dbus.packages = [ pkgs.gnome-remote-desktop ];
21     environment.systemPackages = [ pkgs.gnome-remote-desktop ];
23     systemd.packages = [ pkgs.gnome-remote-desktop ];
24     systemd.tmpfiles.packages = [ pkgs.gnome-remote-desktop ];
26     # TODO: if possible, switch to using provided g-r-d sysusers.d
27     users = {
28       users.gnome-remote-desktop = {
29         isSystemUser = true;
30         group = "gnome-remote-desktop";
31         home = "/var/lib/gnome-remote-desktop";
32       };
33       groups.gnome-remote-desktop = { };
34     };
35   };