From abb44928971e808a821c1a0ce5041c70f89a4289 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 13 Jul 2023 06:56:03 +0000 Subject: [PATCH] sxmo: persist the /var/lib/lightdm directory --- hosts/modules/gui/sxmo/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/modules/gui/sxmo/default.nix b/hosts/modules/gui/sxmo/default.nix index 90fca379..7c8792e9 100644 --- a/hosts/modules/gui/sxmo/default.nix +++ b/hosts/modules/gui/sxmo/default.nix @@ -243,6 +243,12 @@ in cfg.package # this gets share/wayland-sessions/swmo.desktop linked ]; + sane.persist.sys.plaintext = [ + # this takes up 4-5 MB of fontconfig and mesa shader caches. + # it could optionally be cleared on boot. + { path = "/var/lib/lightdm"; user = "lightdm"; group = "lightdm"; mode = "0770"; } + ]; + # taken from gui/phosh: # NB: setting defaultSession has the critical side-effect that it lets org.freedesktop.AccountsService # know that our user exists. this ensures lightdm succeeds when calling /org/freedesktop/AccountsServices ListCachedUsers