https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html This says to set #:recursive? #t and guix will preserve its permissions in the store. I have done this:
(define guixrig_host_rsa_key (local-file "ssh/guixrig_host_rsa_key" #:recursive? #t)) The file this expression puts in the store has permissions of 444, despite the original being 400. How do I prevent guix from changing permissions, or manually override them?