Skip to content

Commit

Permalink
nixos/dae: fix assetsPath defaultText
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Mar 18, 2024
1 parent 98a1bbc commit 42a2b8c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions nixos/modules/services/networking/dae.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ in
options = {
services.dae = with lib;{
enable = mkEnableOption
(mdDoc "dae, a Linux high-performance transparent proxy solution based on eBPF");
"dae, a Linux high-performance transparent proxy solution based on eBPF";

package = mkPackageOptionMD pkgs "dae" { };

Expand All @@ -23,7 +23,7 @@ in
type = with types;(listOf path);
default = with pkgs; [ v2ray-geoip v2ray-domain-list-community ];
defaultText = literalExpression "with pkgs; [ v2ray-geoip v2ray-domain-list-community ]";
description = mdDoc ''
description = ''
Assets required to run dae.
'';
};
Expand All @@ -32,12 +32,12 @@ in
type = types.str;
default = "${genAssetsDrv assets}/share/v2ray";
defaultText = literalExpression ''
(symlinkJoin {
"$\{(symlinkJoin {
name = "dae-assets";
paths = assets;
})/share/v2ray
})}/share/v2ray"
'';
description = mdDoc ''
description = ''
The path which contains geolocation database.
This option will override `assets`.
'';
Expand All @@ -46,7 +46,7 @@ in
openFirewall = mkOption {
type = with types; submodule {
options = {
enable = mkEnableOption (mdDoc "opening {option}`port` in the firewall");
enable = mkEnableOption ("opening {option}`port` in the firewall");
port = mkOption {
type = types.port;
description = ''
Expand All @@ -65,7 +65,7 @@ in
port = 12345;
}
'';
description = mdDoc ''
description = ''
Open the firewall port.
'';
};
Expand All @@ -74,15 +74,15 @@ in
type = with types; (nullOr path);
default = null;
example = "/path/to/your/config.dae";
description = mdDoc ''
description = ''
The path of dae config file, end with `.dae`.
'';
};

config = mkOption {
type = with types; (nullOr str);
default = null;
description = mdDoc ''
description = ''
WARNING: This option will expose store your config unencrypted world-readable in the nix store.
Config text for dae.
Expand All @@ -91,7 +91,7 @@ in
};

disableTxChecksumIpGeneric =
mkEnableOption "" // { description = mdDoc "See <https://github.com/daeuniverse/dae/issues/43>"; };
mkEnableOption "" // { description = "See <https://github.com/daeuniverse/dae/issues/43>"; };

};
};
Expand Down

0 comments on commit 42a2b8c

Please sign in to comment.