Sorry I forgot two things: > +(define (tlp-activation config) > + (let* ((config-dir "/etc") > + (config-str (with-output-to-string > + (lambda () > + (serialize-configuration > + config > + tlp-configuration-fields)))) > + (config-file (plain-file "tlp" config-str))) > + #~(begin > + (use-modules (guix build utils)) > + (mkdir-p #$config-dir) ^ Is this necessary? I think /etc should exist already.
Also, "tlp stat" does not work.