Compare commits
4 Commits
71a08ae4d3
...
65e4086682
| Author | SHA1 | Date | |
|---|---|---|---|
| 65e4086682 | |||
| 0f1ebe339e | |||
| 4bbf7a3a67 | |||
| 6012373501 |
+10
-8
@@ -24,6 +24,7 @@ let
|
|||||||
grdctl rdp set-tls-key "$TLS_DIR/rdp-tls.key" || { echo "ERROR: grdctl rdp set-tls-key failed" >&2; exit 1; }
|
grdctl rdp set-tls-key "$TLS_DIR/rdp-tls.key" || { echo "ERROR: grdctl rdp set-tls-key failed" >&2; exit 1; }
|
||||||
grdctl rdp set-credentials sovran "$PASSWORD" || { echo "ERROR: grdctl rdp set-credentials failed" >&2; exit 1; }
|
grdctl rdp set-credentials sovran "$PASSWORD" || { echo "ERROR: grdctl rdp set-credentials failed" >&2; exit 1; }
|
||||||
grdctl rdp enable || { echo "ERROR: grdctl rdp enable failed" >&2; exit 1; }
|
grdctl rdp enable || { echo "ERROR: grdctl rdp enable failed" >&2; exit 1; }
|
||||||
|
grdctl rdp disable-view-only || echo "WARNING: grdctl rdp disable-view-only not supported on this version" >&2
|
||||||
echo "Session-level RDP configured successfully"
|
echo "Session-level RDP configured successfully"
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
@@ -145,6 +146,7 @@ lib.mkIf config.sovran_systemsOS.features.rdp {
|
|||||||
# Enable RDP backend and set credentials
|
# Enable RDP backend and set credentials
|
||||||
grdctl --system rdp enable
|
grdctl --system rdp enable
|
||||||
grdctl --system rdp set-credentials sovran "$PASSWORD"
|
grdctl --system rdp set-credentials sovran "$PASSWORD"
|
||||||
|
grdctl --system rdp disable-view-only || echo "WARNING: grdctl --system rdp disable-view-only not supported on this version" >&2
|
||||||
|
|
||||||
echo "GNOME Remote Desktop RDP configured successfully"
|
echo "GNOME Remote Desktop RDP configured successfully"
|
||||||
'';
|
'';
|
||||||
@@ -152,12 +154,12 @@ lib.mkIf config.sovran_systemsOS.features.rdp {
|
|||||||
|
|
||||||
# Autostart session-level RDP configuration when the 'free' user's GNOME session starts
|
# Autostart session-level RDP configuration when the 'free' user's GNOME session starts
|
||||||
environment.etc."xdg/autostart/sovran-rdp-session-setup.desktop".text = ''
|
environment.etc."xdg/autostart/sovran-rdp-session-setup.desktop".text = ''
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Sovran RDP Session Setup
|
Name=Sovran RDP Session Setup
|
||||||
Exec=${rdp-session-setup-script}
|
Exec=${rdp-session-setup-script}
|
||||||
Terminal=false
|
Terminal=false
|
||||||
X-GNOME-Autostart-enabled=true
|
X-GNOME-Autostart-enabled=true
|
||||||
NoDisplay=true
|
NoDisplay=true
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user