From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:53724) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEWF2-0002Oc-OY for guix-patches@gnu.org; Wed, 18 Mar 2020 06:48:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEWF1-0003Kz-Ew for guix-patches@gnu.org; Wed, 18 Mar 2020 06:48:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEWF1-0003Km-Bq for guix-patches@gnu.org; Wed, 18 Mar 2020 06:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jEWF0-0000KH-B1 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:48:02 -0400 Subject: [bug#40114] [PATCH] services: Add fontconfig-file-system-service. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:53228) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEWE0-0001h4-Q1 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:47:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEWDz-0000AZ-Gp for guix-patches@gnu.org; Wed, 18 Mar 2020 06:47:00 -0400 Received: from flashner.co.il ([178.62.234.194]:48686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jEWDz-0008WD-A3 for guix-patches@gnu.org; Wed, 18 Mar 2020 06:46:59 -0400 From: Efraim Flashner Date: Wed, 18 Mar 2020 12:46:26 +0200 Message-Id: <20200318104626.20381-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40114@debbugs.gnu.org Cc: Efraim Flashner * gnu/services/desktop.scm (%fontconfig-file-system, fontconfig-file-system-service): New variables. (%desktop-services): Add fontconfig-file-system-service. --- I've been using a tmpfs mounted read-only at /var/cache/fontconfig for months now without any problems. This adds it to %desktop-services. --- gnu/services/desktop.scm | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 1294d748ac..848ed25e3c 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -5,7 +5,7 @@ ;;; Copyright =C2=A9 2016 Sou Bunnbu ;;; Copyright =C2=A9 2017 Maxim Cournoyer ;;; Copyright =C2=A9 2017 ng0 -;;; Copyright =C2=A9 2018 Efraim Flashner +;;; Copyright =C2=A9 2018, 2020 Efraim Flashner ;;; Copyright =C2=A9 2018 Ricardo Wurmus ;;; Copyright =C2=A9 2017, 2019 Christopher Baines ;;; Copyright =C2=A9 2019 Tim Gesthuizen @@ -36,7 +36,7 @@ #:use-module (gnu services networking) #:use-module (gnu services sound) #:use-module ((gnu system file-systems) - #:select (%elogind-file-systems)) + #:select (%elogind-file-systems file-system)) #:use-module (gnu system) #:use-module (gnu system shadow) #:use-module (gnu system pam) @@ -106,6 +106,8 @@ elogind-service elogind-service-type =20 + fontconfig-file-system-service + accountsservice-service-type accountsservice-service =20 @@ -797,6 +799,25 @@ when they log out." =20 =0C ;;; +;;; Fontconfig and other desktop file-systems. +;;; + +(define %fontconfig-file-system + (file-system + (device "none") + (mount-point "/var/cache/fontconfig") + (type "tmpfs") + (flags '(read-only)) + (check? #f))) + +;; The global fontconfig directory is unused in Guix and has been +;; known to cause problems so we mount it read-only. +(define fontconfig-file-system-service + (simple-service 'fontconfig-file-system + file-system-service-type + (list %fontconfig-file-system))) +=0C +;;; ;;; AccountsService service. ;;; =20 @@ -1185,6 +1206,10 @@ or setting its password with passwd."))) ;; perform administrative tasks (similar to "sudo"). polkit-wheel-service =20 + ;; The global fontconfig directory is unused in Guix and has be= en + ;; known to cause problems so we mount it read-only. + fontconfig-file-system-service + ;; NetworkManager and its applet. (service network-manager-service-type) (service wpa-supplicant-service-type) ;needed by NetworkMana= ger --=20 2.25.1