summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/networking/cjdns.nix
AgeCommit message (Collapse)Author
2023-06-24treewide: use optionalString instead of 'then ""'Felix Buehler
2022-07-30treewide: automatically md-convert option descriptionspennae
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
2021-10-04nixos/doc: clean up defaults and examplesNaïm Favier
2021-08-15treewide: runCommandNoCC -> runCommandRobert Hensing
This has been synonymous for ~5y.
2021-05-18services.cjdns: add missing, optional login & peerName attributeMaciej Krüger
2021-03-26cjdns: reduce password length to 32Maciej Krüger
Maximum password length per cjdns code is somehwhere less than that, see https://github.com/cjdelisle/cjdns/blob/ecd01e7681d9b7a06d2673e49fcf9a76a580cb52/client/AdminClient.c#L80 Currently we generate 96 char long passwords that don't work This changes it so password length is just 32 chars long
2020-10-31nixos/modules: fix systemd start rate-limitslf-
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)
2020-03-07nixos/cjdns: Fix connectTo example renderingSilvan Mosberger
2020-03-07nixos/cjdns: Don't use IFD for extra hostsSilvan Mosberger
2019-08-18nixos/cjdns: add extraConfig option (#53502)Eric Litak
2018-07-20[bot] nixos/*: remove unused arguments in lambdasvolth
2018-05-20nixos/cjdns: fix service for i686 (#40740)xeji
service failed to start because of MemoryDenyWriteExecute = true, which seems not to work on i686
2017-02-05cjdns service: allow daemon to drop privilegesJoachim Fasting
The service can run certain components with reduced privileges, but for that it needs the setuid capability.
2017-02-05cjdns service: allow writing keys to /etcJoachim Fasting
20e81f7c0d56e0b179115ca72a85b81ff637d909 prevented key generation in `preStart`, leaving the service broken for the case where the user has no pre-existing key. Eventually, we ought to store the state elsewhere so that `/etc` can be read-only but for now we fix this the easy way.
2017-01-02cjdns service: optionally add cjdns hosts to networking.extraHostsTomas Hlavaty
Enabling this incurs a heavy eval-time cost, but it's a nice usability enhancement; satisfy both concerns by making it optional (default false).
2017-01-02Revert "nixos/cjdns: do not ammend /etc/hosts"Joachim Fasting
This reverts commit 60ded3f3632d221ca3f82a52392e155517880456. We want to make this optional instead.
2016-11-27cjdns: Improving systemd unit descriptionSophie Taylor
2016-11-18nixos/cjdns: do not ammend /etc/hostsEmery Hemingway
Generating IPv6 addresses at eval time required building cjdns. Fix #20422
2016-11-04nixos/cjdns: tightened permissions via systemd, added capsSophie Taylor
2016-11-04cjdns module: fix typoJoachim Fasting
2016-10-27cjdns service: refactor cjdns hosts builderJoachim Fasting
The old version would export two lists to a bash builder and do pairwise processing on the bash side. In the new version we instead generate a logic free builder on the Nix side. This is not only conceptually simpler but reduces the amount of code and intermediate values.
2016-10-27cjdns service: ensure that generated passwd has requested lengthJoachim Fasting
`head -cNUM ... | tr -dc SET` might generate output containing fewer than NUM characters. Given the limited alphabet, this could result in a fairly weak passphrase. The construction `tr </dev/urandom | head -cNUM`, however, is sure to give us the full `NUM`.
2016-10-27cjdns service: protect /home and /tmpJoachim Fasting
2016-10-27cjdns service: better typesJoachim Fasting
- types.string -> str, string is deprecated - change type of confFile option to nullOr path, makes more sense
2016-10-27cjdns service: use cfg.enable shortcutJoachim Fasting
2016-10-27cjdns service: whitespace cleanupJoachim Fasting
2016-09-13treewide: minor format / style / documentation fixesAlexander Ried
2016-09-13cjdns service: network-interfaces.target -> network.targetJoachim Fasting
2016-08-25cjdns: fix assertion.Carles Pagès
2015-04-25nixos: fix cjdns json configEmery Hemingway
filter extraneous attributes from config modules
2014-11-08cjdns: service tweaks, new NixOS testEmery Hemingway
2014-10-21cjdns: add peer hostnames to extraHosts, option for external configEmery Hemingway
2014-09-23cjdns: update from 20140919 20140922Emery Hemingway
package installs to .../bin fix service module to look in .../bin Closes #4240
2014-08-31cjdns: new declarative service expressionEmery Hemingway
systemd service wants network-interfaces.target rather than network.target assertion on config.networking.enableIPv6
2014-04-14Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra
Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
2014-04-09cjdns: update to 20130303Emery Hemingway
build system is now nodejs based new nixos module to start cjdns