Merge pull request #136128 from max-privatevoid/patch-3

nixos/ipfs: run profile applications offline
This commit is contained in:
Kevin Cox 2021-08-30 07:25:28 -04:00 committed by GitHub
commit 8c52265df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,8 +226,8 @@ in {
${optionalString (! cfg.localDiscovery) "--profile=server"} ${optionalString (! cfg.localDiscovery) "--profile=server"}
else else
${if cfg.localDiscovery ${if cfg.localDiscovery
then "ipfs config profile apply local-discovery" then "ipfs --offline config profile apply local-discovery"
else "ipfs config profile apply server" else "ipfs --offline config profile apply server"
} }
fi fi
'' + optionalString cfg.autoMount '' '' + optionalString cfg.autoMount ''