Merge pull request #126441 from mkg20001/remote-desktop-fixup
This commit is contained in:
commit
86a80807d8
7 changed files with 43 additions and 14 deletions
|
@ -226,6 +226,12 @@
|
|||
</listitem>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>programs.x2goserver</literal> is now
|
||||
<literal>services.x2goserver</literal>
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</section>
|
||||
<section xml:id="other-notable-changes">
|
||||
|
|
|
@ -64,4 +64,6 @@ In addition to numerous new and upgraded packages, this release has the followin
|
|||
- ExcelDnaRegistration
|
||||
- MathNetNumerics
|
||||
|
||||
* `programs.x2goserver` is now `services.x2goserver`
|
||||
|
||||
## Other Notable Changes
|
||||
|
|
|
@ -198,7 +198,6 @@
|
|||
./programs/waybar.nix
|
||||
./programs/wireshark.nix
|
||||
./programs/wshowkeys.nix
|
||||
./programs/x2goserver.nix
|
||||
./programs/xfs_quota.nix
|
||||
./programs/xonsh.nix
|
||||
./programs/xss-lock.nix
|
||||
|
@ -854,6 +853,7 @@
|
|||
./services/networking/xandikos.nix
|
||||
./services/networking/xinetd.nix
|
||||
./services/networking/xl2tpd.nix
|
||||
./services/networking/x2goserver.nix
|
||||
./services/networking/xrdp.nix
|
||||
./services/networking/yggdrasil.nix
|
||||
./services/networking/zerobin.nix
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.programs.x2goserver;
|
||||
cfg = config.services.x2goserver;
|
||||
|
||||
defaults = {
|
||||
superenicer = { enable = cfg.superenicer.enable; };
|
||||
|
@ -17,7 +17,11 @@ let
|
|||
'';
|
||||
|
||||
in {
|
||||
options.programs.x2goserver = {
|
||||
imports = [
|
||||
(mkAliasOptionModule [ "programs" "x2goserver" "enable" ] [ "services" "x2goserver" "enable" ])
|
||||
];
|
||||
|
||||
options.services.x2goserver = {
|
||||
enable = mkEnableOption "x2goserver" // {
|
||||
description = ''
|
||||
Enables the x2goserver module.
|
||||
|
@ -63,6 +67,14 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
# x2goserver can run X11 program even if "services.xserver.enable = false"
|
||||
xdg = {
|
||||
autostart.enable = true;
|
||||
menus.enable = true;
|
||||
mime.enable = true;
|
||||
icons.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.x2goserver ];
|
||||
|
||||
users.groups.x2go = {};
|
|
@ -61,6 +61,12 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
openFirewall = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = "Whether to open the firewall for the specified RDP port.";
|
||||
};
|
||||
|
||||
sslKey = mkOption {
|
||||
type = types.str;
|
||||
default = "/etc/xrdp/key.pem";
|
||||
|
@ -99,6 +105,8 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ];
|
||||
|
||||
# xrdp can run X11 program even if "services.xserver.enable = false"
|
||||
xdg = {
|
||||
autostart.enable = true;
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
{ lib, fetchgit, cups, libssh, libXpm, nx-libs, openldap, openssh
|
||||
{ lib, fetchurl, cups, libssh, libXpm, nx-libs, openldap, openssh
|
||||
, mkDerivation, qtbase, qtsvg, qtx11extras, qttools, phonon, pkg-config }:
|
||||
|
||||
mkDerivation {
|
||||
mkDerivation rec {
|
||||
pname = "x2goclient";
|
||||
version = "unstable-2019-07-24";
|
||||
version = "4.1.2.2";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://code.x2go.org/x2goclient.git";
|
||||
rev = "704c4ab92d20070dd160824c9b66a6d1c56dcc49";
|
||||
sha256 = "1pndp3lfzwifyxqq0gps3p1bwakw06clbk6n8viv020l4bsfmq5f";
|
||||
src = fetchurl {
|
||||
url = "https://code.x2go.org/releases/source/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "yZUyZ8QPpnEZrZanO6yx8mYZbaIFnwzc0bjVGZQh0So=";
|
||||
};
|
||||
|
||||
buildInputs = [ cups libssh libXpm nx-libs openldap openssh
|
||||
qtbase qtsvg qtx11extras qttools phonon pkg-config ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/onmainwindow.cpp --replace "/usr/sbin/sshd" "${openssh}/bin/sshd"
|
||||
substituteInPlace Makefile \
|
||||
--replace "SHELL=/bin/bash" "SHELL=$SHELL" \
|
||||
--replace "lrelease-qt4" "${qttools.dev}/bin/lrelease" \
|
||||
|
@ -33,6 +33,7 @@ mkDerivation {
|
|||
meta = with lib; {
|
||||
description = "Graphical NoMachine NX3 remote desktop client";
|
||||
homepage = "http://x2go.org/";
|
||||
maintainers = with maintainers; [ mkg20001 ];
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
|
|
@ -8,8 +8,8 @@ let
|
|||
version = "4.1.0.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://code.x2go.org/releases/source/x2goserver/${pname}-${version}.tar.gz";
|
||||
sha256 = "1l6wd708kbipib4ldprfiihqmj4895nifg0bkws4x97majislxk7";
|
||||
url = "https://code.x2go.org/releases/source/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "Z3aqo1T1pE40nws8F21JiMiKYYwu30bJijeuicBp3NA=";
|
||||
};
|
||||
|
||||
x2go-perl = perlPackages.buildPerlPackage rec {
|
||||
|
@ -26,7 +26,7 @@ let
|
|||
};
|
||||
|
||||
perlEnv = perl.withPackages (p: with p; [
|
||||
x2go-perl DBI DBDSQLite FileBaseDir TryTiny CaptureTiny ConfigSimple Switch
|
||||
x2go-perl DBI DBDSQLite FileBaseDir TryTiny CaptureTiny ConfigSimple Switch FileWhich
|
||||
]);
|
||||
|
||||
binaryDeps = [
|
||||
|
@ -88,6 +88,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = "http://x2go.org/";
|
||||
platforms = lib.platforms.linux;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.averelld ];
|
||||
maintainers = with maintainers; [ averelld mkg20001 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue