nixos/x2goserver: put into networking, like xrdp
This commit is contained in:
parent
03071fd5e3
commit
6dbeea0b40
2 changed files with 15 additions and 3 deletions
|
@ -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 = {};
|
Loading…
Reference in a new issue