# How to access a service's generated configuration

**URL:** <https://forum.systemcrafters.net/t/how-to-access-a-services-generated-configuration/700>\
**Category:** Guix\
**Created:** [May 21, 2024, 10:33am UTC](https://forum.systemcrafters.net/t/how-to-access-a-services-generated-configuration/700 "2024-05-21T10:33:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinhead](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/tinhead/32/602_2.png) [@tinhead](https://forum.systemcrafters.net/u/tinhead)\
**Post date:** [May 21, 2024, 10:33am UTC](https://forum.systemcrafters.net/t/how-to-access-a-services-generated-configuration/700/1 "2024-05-21T10:33:31Z")

</div>

Hi all,

I’m trying to implement a guix system service (using [[GitHub - MindFlavor/prometheus\_wireguard\_exporter: A Prometheus exporter for WireGuard, written in Rust.](https://github.com/MindFlavor/prometheus_wireguard_exporter)]) that needs to access the wireguard configuration file from the store for friendly peer names, and I’m hitting a wall here ☹

Did anyone attempt this before or know a service doing it?

Thank you,  
Razvan aka TinHead

---

<div class="post-metadata">

**Author:** ![tinhead](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/tinhead/32/602_2.png) [@tinhead](https://forum.systemcrafters.net/u/tinhead)\
**Post date:** [June 13, 2024, 7:44am UTC](https://forum.systemcrafters.net/t/how-to-access-a-services-generated-configuration/700/2 "2024-06-13T07:44:08Z")

</div>

It was a longshot the above 🙂 In the end I’ve redefined guix’s wireguard service to also link the generated configuration to /etc/wireguard/interfacename.conf

You can find the service definition in my channel here: [GitHub - TinHead/th-guix-channel: my guix channel](https://github.com/TinHead/th-guix-channel)
