modules/hyprspace: use IPFS API

This commit is contained in:
Max Headroom 2022-09-25 01:43:21 +02:00
parent aa5d8c9721
commit ab0e4adcaa

View file

@ -49,7 +49,11 @@ in {
chmod 0400 ${runConfig}
'';
environment.HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
environment = {
HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
} // (lib.optionalAttrs config.services.ipfs.enable {
HYPRSPACE_IPFS_API = config.services.ipfs.apiAddress;
});
serviceConfig = {
Restart = "on-failure";
RestartSec = "5s";