# Pastebin jkv5hAe7 (computed-file "kresd.conf" (with-imported-modules '((ice-9 string-fun) (ice-9 custom-ports) (ice-9 textual-ports)) #~(begin (use-modules (ice-9 string-fun) (ice-9 textual-ports)) (let ((tmpl #$(local-file "../../data/kresd.conf.tmpl"))) (call-with-output-file #$output (lambda (out) (call-with-input-file tmpl (lambda (in) (display (string-replace-substring (get-string-all in) "%%hostname%%" #$host-name) out)))))))))