diff --git a/configuration.nix b/configuration.nix index fcb84c9..9b985f2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -154,33 +154,6 @@ in }; }; - systemd.services.x11vnc = { - description = "x11vnc server for mirroring x display"; - after = [ "display-manager.service" ]; - wantedBy = [ "multi-user.target" ]; - serviceConfig = { - # ExecStart = "${pkgs.x11vnc}/bin/x11vnc -display :0 -forever -nopw -rfbport 5900 -auth /home/fredrikr/.Xauthority"; - ExecStart = '' - ${pkgs.x11vnc}/bin/x11vnc -display :0 -forever -shared -usepw \ - -rfbport 5900 -listen 0.0.0.0 \ - -auth /home/fredrikr/.Xauthority \ - # -ncache 10 -ncache_cr \ - -repeat -xkb -noxdamage \ - -tightfilexfer -xrandr -many \ - -clip 1920x1080+0+0 \ - -geometry 1920x1080 \ - -noxinerama \ - -grabptr -grabkbd -noxrecord -noxfixes \ - -rfbauth /home/fredrikr/.vnc/passwd - # -ssl -sslverify -sslcert /home/fredrikr/x11vnc-ssl.pem -sslCipher ALL \ - ''; - # TODO: add ssl encryption to vnc connection - Restart = "always"; - User = "fredrikr"; - Environment = "DISPLAY=:0"; - }; - }; - # Enable CUPS to print documents. # services.printing.enable = true; @@ -275,9 +248,6 @@ in { powertop gamemode alsa-utils - x11vnc - gawk - openssl ]); programs.steam.enable = true; @@ -472,54 +442,5 @@ in { powerManagement.powertop.enable = true; # services.auto-cpufreq.enable = true; - - services.xrdp = { - enable = true; - defaultWindowManager = "xmonad"; - }; - - environment.etc."xrdp/xrdp.ini".text = '' - [Globals] - ini_version=1 - fork=true - port=3389 - use_vsock=false - tcp_nodelay=true - tcp_keepalive=true - security_layer=negotiate - crypt_level=high - certificate=/etc/xrdp/cert.pem - key_file=/etc/xrdp/key.pem - rsakeys_ini=/run/xrdp/rsakeys.ini - ssl_protocols=TLSv1.2, TLSv1.3 - allow_channels=true - allow_multimon=true - bitmap_cache=true - bitmap_compression=true - bulk_compression=true - max_bpp=32 - new_cursors=true - use_fastpath=both - grey=e1e1e1 - dark_grey=b4b4b4 - blue=0078d7 - dark_blue=0078d7 - - [Xorg] - name=Xorg - lib=libxup.so - username=ask - password=ask - port=ask - code=20 - - [xrdp1] - name=test - lib=libvnc.so - username=ask - password=ask - ip=127.0.0.1 - port=5912 - ''; }