services: xvnc: Do not create a regular HOME directory for xvnc user.

* gnu/services/vnc.scm (%xvnc-accounts)
[home-directory]: Define as /var/empty.
[shell]: Set to nologin, for good measures.
This commit is contained in:
Maxim Cournoyer 2023-04-02 23:23:26 -04:00
parent 3d01c420c1
commit f3c866fade
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -17,6 +17,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu services vnc)
#:use-module (gnu packages admin)
#:use-module (gnu packages vnc)
#:use-module ((gnu services) #:hide (delete))
#:use-module (gnu system shadow)
@ -191,7 +192,9 @@ (define %xvnc-accounts
(name "xvnc")
(group "xvnc")
(system? #t)
(comment "User for Xvnc server"))))
(comment "User for Xvnc server")
(home-directory "/var/empty")
(shell (file-append shadow "/sbin/nologin")))))
(define (xvnc-shepherd-service config)
"Return a <shepherd-service> for Xvnc with CONFIG."