-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i2pd module options map to outdated configuration, has no extraConfig or configFile option #228182
Comments
As a workaround you could write your own config with Also, the NixOS i2pd module does a manual mapping to an INI file with a few sectionless ("global") parameters. The module could more efficiently use freeform settings and |
I have already refactored this module here with addition of some new features (optional enumerators for indexed parameters like You can help advance this PR by testing it and leaving your review: $ cat configuration.nix
{ inputs, pkgs, ... }:
let
# With flakes
i2pd_override = inputs.i2pd_override;
# Without flakes
i2pd_override = pkgs.fetchFromGitHub {
owner = "one-d-wide";
repo = "nixpkgs";
rev = "363360f33bbd379dda3a38eda0ede0d3330667e4";
sha256 = "sha256-0fv/oHtM7at5/bUgiVlog+CYBPAm7xDGK/Hk0axY+gY=";
};
in
{
...
# Override `i2pd` module
disabledModules = [ "services/networking/i2pd.nix" ];
imports = [ "${i2pd_override}/nixos/modules/services/networking/i2pd.nix" ];
...
}
$ cat flake.nix
inputs = {
...
i2pd_override = {
url = "github:one-d-wide/nixpkgs/i2pd-refactor-freeform";
flake = false;
};
...
} Then rebuild your system and type I added support for free-formed configuration (RFC42), so all official options are now directly accessible with automatic validation! |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/i2pd-config-produces-errors-is-it-my-fault/38818/2 |
Describe the bug
The options in the i2pd module map to an outdated version of the supported upstream config. For example
ssu2
section is missing from the NixOS module, andntcp
-related options are removed upstream but still present in the NixOS module options. The NixOS module also does not provide anyextraConfig
orconfigFile
option for manually writing the module config in part or in whole as a workaround.Steps To Reproduce
Steps to reproduce the behavior:
services.i2pd
with options from upstream documented configuration options or upstream sample configuration, for example anything inssu2
sectionExpected behavior
Be able to map from NixOS module config options to supported upstream config options, either NixOS specific module options or generic
extraConfig
orconfigFile
options.Additional context
NixOS module also contains options relating to
ntcp
, removed upstream. Other inconsistencies between NixOS module and upstream config may exist, I have not done an exhaustive comparison.Notify maintainers
@edwtjo
The text was updated successfully, but these errors were encountered: