| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
| |
According to https://docs.ipfs.io/reference/cli/#ipfs the --local command line option is deprecated and should be replaced with --offline.
|
|\
| |
| | |
nixos/davfs2: wrap {,u}mount.davfs with setuid=true
|
| | |
|
| |
| |
| |
| | |
Also, set StateDirectory in systemd.….serviceConfig.
|
|/ |
|
|
|
|
| |
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.
|
|
|
|
| |
This typo was introduced in 4044d81d5cea617e58ec9682f9cc447dde326850.
|
|
|
|
| |
Setting "security = share" causes silent failures.
|
| |
|
|\
| |
| | |
nixos/yandex-disk: add types
|
| | |
|
|\ \
| | |
| | | |
nixos/xtreemfs: add types
|
| |/ |
|
|\ \
| | |
| | | |
nixos/openafs: add types
|
| |/ |
|
|/ |
|
|
|
|
|
|
| |
Define systemd-socket activation using the upstream configuration
files as a reference. The "rsyncd" systemd unit has been renamed
to "rsync" for consistency with upstream.
|
|
|
|
| |
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
|
| |
|
| |
|
|\
| |
| | |
wsdd: init at 0.6.2
|
| | |
|
|/ |
|
| |
|
|
|
|
| |
Add `package` option to change the package used for the service.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These were broken since 2016:
https://github.com/systemd/systemd/commit/f0367da7d1a61ad698a55d17b5c28ddce0dc265a
since StartLimitIntervalSec got moved into [Unit] from [Service].
StartLimitBurst has also been moved accordingly, so let's fix that one
too.
NixOS systems have been producing logs such as:
/nix/store/wf98r55aszi1bkmln1lvdbp7znsfr70i-unit-caddy.service/caddy.service:31:
Unknown key name 'StartLimitIntervalSec' in section 'Service', ignoring.
I have also removed some unnecessary duplication in units disabling
rate limiting since setting either interval or burst to zero disables it
(https://github.com/systemd/systemd/blob/ad16158c10dfc3258831a9ff2f1a988214f51653/src/basic/ratelimit.c#L16)
|
|\
| |
| | |
nixos/samba: remove upstream deprecated syncPasswordsByPam option
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit 42eebd7adef51b36c597753b3aaf6347864d176e, reversing
changes made to b169bfc9e2c981a46680c53343258d90be6f6d9f.
This breaks nfs3.simple test and even current PR #97656 wouldn't fix it.
Therefore let's revert for now to unblock the channels.
|
|\ \
| | |
| | | |
nixos/nfsd: run rpc-statd as a normal user
|
| |/ |
|
|\ \
| |/
|/| |
nixos/cachefilesd: don't set up manually
|
| |
| |
| |
| | |
Use our available infrastructure instead of manually handling setup.
|
|\ \
| |/
|/| |
treewide: fix modules options types where the default is null
|
| |
| |
| |
| |
| | |
They can be caught with `nixos-option -r` on an empty ({...}:{}) NixOS
configuration.
|
| |
| |
| |
| |
| | |
Well, via the underlying UDP. QUIC-level socket activation we'll get
someday.
|
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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/nsswitch cleanup nss modules
|
| | | |
|
|/ /
| |
| |
| | |
Without it, the services get stuck on startup when the IPFS repo needs upgrades.
|