Remote Desktop: Difference between revisions

imported>Skyset
m Typo
m fixed deprecated syntax
Line 32: Line 32:


An example script:
An example script:
<source lang="bash">
<syntaxhighlight lang="bash">
#!/usr/bin/env bash
#!/usr/bin/env bash


Line 38: Line 38:
# start window manager
# start window manager
exec icewm
exec icewm
</source>
</syntaxhighlight>


<code>pathToScript</code> can also be a path to an executable like <code>${pkgs.icewm}/bin/icewm</code>
<code>pathToScript</code> can also be a path to an executable like <code>${pkgs.icewm}/bin/icewm</code>
Line 66: Line 66:
All of the options for the <code>xrdp</code> service can be viewed on the [https://search.nixos.org/options?channel=23.11&from=0&size=50&sort=relevance&type=packages&query=xrdp NixOS Options wiki], though an example setup inside of <code>configuration.nix</code> is provided below:
All of the options for the <code>xrdp</code> service can be viewed on the [https://search.nixos.org/options?channel=23.11&from=0&size=50&sort=relevance&type=packages&query=xrdp NixOS Options wiki], though an example setup inside of <code>configuration.nix</code> is provided below:


<source lang="nix">
<syntaxhighlight lang="nix">


services.xserver.enable = true;
services.xserver.enable = true;
Line 75: Line 75:
services.xrdp.defaultWindowManager = "startplasma-x11";
services.xrdp.defaultWindowManager = "startplasma-x11";
services.xrdp.openFirewall = true;
services.xrdp.openFirewall = true;
</source>
</syntaxhighlight>


(Source: [https://discourse.nixos.org/t/please-post-working-xrdp-setting-in-configuration-nix/7404/10 Discourse Link], [https://github.com/NixOS/nixpkgs/blob/86a80807d8d7051c63ab2b9d7f630abe066468b1/nixos/modules/services/networking/xrdp.nix nixpkgs code])
(Source: [https://discourse.nixos.org/t/please-post-working-xrdp-setting-in-configuration-nix/7404/10 Discourse Link], [https://github.com/NixOS/nixpkgs/blob/86a80807d8d7051c63ab2b9d7f630abe066468b1/nixos/modules/services/networking/xrdp.nix nixpkgs code])