-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2fc097ad74d8
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1c4480e9318f
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 8 commits
- 3 files changed
- 3 contributors
Commits on Jun 11, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c8a2e63 - Browse repository at this point
Copy the full SHA c8a2e63View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74ff433 - Browse repository at this point
Copy the full SHA 74ff433View commit details -
nixos/ipfs: consolidate services into one ipfs.service
Previously we had three services for different config flavors. This is confusing because only one instance of IPFS can run on a host / port combination at once. So move all into ipfs.service, which contains the configuration specified in services.ipfs. Also remove the env wrapper and just use systemd env configuration.
Configuration menu - View commit details
-
Copy full SHA for c5f4019 - Browse repository at this point
Copy the full SHA c5f4019View commit details
Commits on Jun 12, 2020
-
nixos/ipfs: add startWhenNeeded option
This makes it possible to only start IPFS when needed. So a user’s IPFS daemon only starts when they actually use it. A few important warnings though: - This probably shouldn’t be mixed with services.ipfs.autoMount since you want /ipfs and /ipns aren’t activated like this - ipfs.socket assumes that you are using ports 5001 and 8080 for the API and gateway respectively. We could do some parsing to figure out what is in apiAddress and gatewayAddress, but that’s kind of difficult given the nonstandard address format. - Apparently? this doesn’t work with the --api commands used in the tests. Of course you can always start automatically with startWhenNeeded = false, or just running ‘systemctl start ipfs.service’. Tested with the following test (modified from tests/ipfs.nix): import ./make-test-python.nix ({ pkgs, ...} : { name = "ipfs"; nodes.machine = { ... }: { services.ipfs = { enable = true; startWhenNeeded = true; }; }; testScript = '' start_all() machine.wait_until_succeeds("ipfs id") ipfs_hash = machine.succeed("echo fnord | ipfs add | awk '{ print $2 }'") machine.succeed(f"ipfs cat /ipfs/{ipfs_hash.strip()} | grep fnord") ''; }) Fixes #90145 Update nixos/modules/services/network-filesystems/ipfs.nix Co-authored-by: Florian Klink <flokli@flokli.de>
Configuration menu - View commit details
-
Copy full SHA for b36ef70 - Browse repository at this point
Copy the full SHA b36ef70View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa06d8f - Browse repository at this point
Copy the full SHA fa06d8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 982a17a - Browse repository at this point
Copy the full SHA 982a17aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c2f6c0 - Browse repository at this point
Copy the full SHA 2c2f6c0View commit details -
Merge pull request #90157 from obsidiansystems/socket-based-ipfs
Add socket-based IPFS support
Configuration menu - View commit details
-
Copy full SHA for 1c4480e - Browse repository at this point
Copy the full SHA 1c4480eView commit details
There are no files selected for viewing