Liliana Marie Prikler writes: > Am Mittwoch, dem 21.09.2022 um 18:59 +0900 schrieb Taiju HIGASHI: >> Hi Liliana, >> >> Thank you for your review. >> >> > > -(define (add-fontconfig-config-file he-symlink-path) >> > > +(define (add-fontconfig-config-file font-config) >> > >    `(("fontconfig/fonts.conf" >> > >       ,(mixed-text-file >> > >         "fonts.conf" >> > >         " >> > >   >> > >   >> > > -  ~/.guix-home/profile/share/fonts >> > > -")))) >> > > +  ~/.guix-home/profile/share/fonts\n" >> > > +       (if (null? font-config) >> > > +           "" >> > > +           (string-join font-config "\n" 'suffix)) >> > > +       "\n")))) >> > I think it'd be wiser to pretty-print SXML here. >> > The structure could look something like >> > `(fontconfig >> >    (dir "~/.guix-home/profile/share/fonts") >> >    ,@(extra-user-config ...)) >> >> That's definitely better! >> Does this assume that SXML will also accept additional user settings? > It assumes that whatever (extra-user-config ...) does, it returns a > list of SXML nodes, e.g. ((dir "~/.fonts")). Writing correct SXML > should be comparatively simpler to writing correct XML. I just sent you the v2 patch. It uses SXML to handle the user's extra configs. I also made it so that the user can pass SXML directly. I also wrote a test but did not include it in the patch because I thought it would be a technical debt. I'm attaching that as a reference.