summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems/ipfs.nix
Commit message (Collapse)AuthorAge
* ipfs-migrator: 1.7.1 -> 2.0.2Luflosi2022-02-25
| | | | | | | | | | | | | | | | | | | | https://github.com/ipfs/fs-repo-migrations/releases/tag/v2.0.2 This is pretty much a complete rewrite of the ipfs-migrator package. In version 2.0.0 a major change was made to the way the migrator works. Before, there was one binary that contained every migration. Now every migration has its own binary. If fs-repo-migrations can't find a required binary in the PATH, it will download it off the internet. To prevent that, build every migration individually, symlink them all into one package and then wrap fs-repo-migrations so it finds the package with all the migrations. The change to the IPFS NixOS module and the IPFS package is needed because without explicitly specifying a repo version to migrate to, fs-repo-migrations will query the internet to find the latest version. This fails in the sandbox, for example when testing the ipfs passthru tests. While it may seem like the repoVersion and IPFS version are in sync and the code could be simplified, this is not the case. See https://github.com/ipfs/fs-repo-migrations#when-should-i-migrate for a table with the IPFS versions and corresponding repo versions. Go 1.17 breaks the migrations, so use Go 1.16 instead. This is also the Go version used in their CI, see https://github.com/ipfs/fs-repo-migrations/blob/3dc218e3006adac25e1cb5e969d7c9d961f15ddd/.github/workflows/test.yml#L4. See https://github.com/ipfs/fs-repo-migrations/pull/140#issuecomment-982715907 for a previous mention of this issue. The issue manifests itself when doing anything with a migration, for example `fs-repo-11-to-12 --help`: ``` panic: qtls.ClientHelloInfo doesn't match goroutine 1 [running]: github.com/marten-seemann/qtls-go1-15.init.0() github.com/marten-seemann/qtls-go1-15@v0.1.1/unsafe.go:20 +0x132 ``` Also add myself as a maintainer for this package. This fixes the test failure discovered in https://github.com/NixOS/nixpkgs/pull/160914. See https://github.com/ipfs/fs-repo-migrations/issues/148 to read some of my struggles with updating this package.
* nixos/ipfs: use ipfs config replaceschnusch2022-02-06
|
* nixos/*: add trivial defaultText for options with simple defaultspennae2021-12-02
|
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* Merge pull request #137113 from kevincox/ipfs-profile-fixKevin Cox2021-09-10
|\ | | | | nixos.ipfs: Fix startup after unclean shutdown.
| * nixos.ipfs: Fix startup after unclean shutdown.Kevin Cox2021-09-08
| | | | | | | | Fixes https://github.com/NixOS/nixpkgs/issues/135684
* | ipfs: default to not listen on the local networkhappysalada2021-09-10
|/
* Merge pull request #136261 from happysalada/ipfs_auto_migrationsKevin Cox2021-08-31
|\ | | | | Ipfs auto migrations
| * ipfs: add autoMigrate optionhappysalada2021-08-31
| |
| * ipfs: nixpkgs-fmthappysalada2021-08-31
| |
* | ipfs: increase UDP buffer sizehappysalada2021-08-31
| |
* | ipfs: nixpkgs-fmthappysalada2021-08-31
|/
* nixos/ipfs: run profile applications offlineMax2021-08-30
|
* nixos/ipfs: replace deprecated command line optionLuflosi2021-06-30
| | | | According to https://docs.ipfs.io/reference/cli/#ipfs the --local command line option is deprecated and should be replaced with --offline.
* nixos/ipfs: remove separate ipfs-init systemd unitLuflosi2021-04-22
| | | | There is no need for a separate unit. Simplify the NixOS module by adding the shell code to preStart of the main unit, where the other initialization code already is.
* nixos/ipfs: fix typo in commentLuflosi2021-04-21
| | | | This typo was introduced in 4044d81d5cea617e58ec9682f9cc447dde326850.
* nixos/modules/services/network-filesystems/ipfs: refactorFabián Heredia Montiel2020-11-03
| | | | Add `package` option to change the package used for the service.
* nixos/ipfs: Allow QUIC connections to socket activate tooJohn Ericson2020-08-11
| | | | | Well, via the underlying UDP. QUIC-level socket activation we'll get someday.
* nixos/ipfs: add QUIC transport to swarmAddress listLuflosi2020-08-08
| | | | According to https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#addressesswarm, the default list of swarm multiaddrs now includes the QUIC transport.
* IPFS NixOS module: Socket unit file more preciseJohn Ericson2020-06-17
| | | | | | | | | The systemd socket unit files now more precisely track the IPFS configuration, by including any multaddr they can make a `ListenStream` for. (The daemon doesn't currently support anything which would use `ListDatagram`, so we don't need to worry about that.) The tests use some of these features.
* nixos/ipfs: only set listenstream when gateway/api is defaultMatthew Bauer2020-06-12
|
* nixos/ipfs: always expose socketsMatthew Bauer2020-06-12
|
* nixos/ipfs: actually use upstream systemd unitsMatthew Bauer2020-06-12
|
* nixos/ipfs: add startWhenNeeded optionMatthew Bauer2020-06-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* nixos/ipfs: consolidate services into one ipfs.serviceMatthew Bauer2020-06-11
| | | | | | | | | 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.
* nixos/ipfs: remove unused auto migrate featureMatthew Bauer2020-06-11
|
* Services,IPFS,Fix: Require the ipfs-migrator package for handling upgrades.Dietrich Daroch2020-05-13
| | | | Without it, the services get stuck on startup when the IPFS repo needs upgrades.
* ipfs: remove ipfs repo fsckNathan Fish2020-05-05
| | | | https://github.com/NixOS/nixpkgs/pull/86242#issuecomment-621469759
* nixos: remove dependencies on local-fs.targetFlorian Klink2019-09-01
| | | | | | | Since https://github.com/NixOS/nixpkgs/pull/61321, local-fs.target is part of sysinit.target again, meaning units without DefaultDependencies=no will automatically depend on it, and the manual set dependencies can be dropped.
* nixos/fuse: initMichael Weiss2019-08-11
| | | | | Add a module for /etc/fuse.conf. Fixes #30923.
* nixos/ipfs: replace deprecated usage of PermissionsStartOnlyAaron Andersen2019-04-13
| | | | see https://github.com/NixOS/nixpkgs/issues/53852
* nixos: add preferLocalBuild=true; on derivations for config filesSymphorien Gibol2019-02-22
|
* Add IPFS warningEmery Hemingway2018-12-22
|
* Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1"Tuomas Tynkkynen2018-07-28
| | | | | | | | | | | This reverts commit 095fe5b43def40279a243e663c662b02caac5318. Pointless renames considered harmful. All they do is force people to spend extra work updating their configs for no benefit, and hindering the ability to switch between unstable and stable versions of NixOS. Like, what was the value of having the "nixos." there? I mean, by definition anything in a NixOS module has something to do with NixOS...
* nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
|
* nixos/ipfs: Improve behavior of localDiscovery optionSebastian Jordan2018-05-23
| | | | | It is no longer required to change the config your ipfs repo manually if you change localDiscovery option in nixos configuration after ipfs repository initialization.
* nixos/ipfs: Add option to disable local port scanning for ipfs daemonSebastian Jordan2018-05-21
|
* nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1Jan Malakhovski2018-05-12
|
* ipfs: add swarmAddress optionEric Litak2017-11-25
|
* ipfs: disable autoMigrate option for nowEric Litak2017-09-29
|
* ipfs: autoMount working without rootEric Litak2017-09-17
|
* ipfs: workaround for upstream bug; doc fixesEric Litak2017-09-17
|
* ipfs: adding mountDir options but disabling broken autoMountEric Litak2017-08-30
|
* ipfs: preStart configuration moved into daemon servicesEric Litak2017-08-30
|
* ipfs: refactor; wrapper adjustmentEric Litak2017-08-30
|
* ipfs: optionally manage ulimit -n in serviceConfigEric Litak2017-08-30
|
* ipfs: add extraConfig optionEric Litak2017-08-30
|
* ipfs: add autoMount optionEric Litak2017-08-30
|
* ipfs: added defaultMode, added norouting serviceMaximilian Güntner2017-08-17
|
* ipfs service: dataDir backwards compatibility (#25782)Silvan Mosberger2017-05-24
| | | Fixes dataDir existance detection. Fixes #25759, #26069.