From e92b621e09f85406f562f416f90312dff10351b8 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 10 Jul 2023 08:30:17 +0000 Subject: [PATCH] sxmo: configure user prefs via ~/.config/sxmo/profile rather than the system environment --- hosts/modules/gui/sxmo.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/modules/gui/sxmo.nix b/hosts/modules/gui/sxmo.nix index 114e1102..b8b2cbd3 100644 --- a/hosts/modules/gui/sxmo.nix +++ b/hosts/modules/gui/sxmo.nix @@ -192,7 +192,16 @@ in }; sane.user.fs.".cache/sxmo/sxmo.noidle" = lib.mkIf cfg.noidle (sane-lib.fs.wantedText ""); - sane.user.fs.".config/sxmo/profile".symlink.text = lib.generators.toKeyValue {} cfg.settings; + sane.user.fs.".config/sxmo/profile".symlink.text = let + mkKeyValue = key: value: ''export ${key}="${value}"''; + userConfig = lib.generators.toKeyValue { inherit mkKeyValue; } cfg.settings; + in '' + # configversion: 4284f96d91e9550ff8f3b25823e402ad + # ^ upstream adds new options every now and then, expects user config file + # to include the md5sum of the template it's based on. + # see `setup_config_version.sh` + ${userConfig} + ''; ## greeter