nixos/nftables: use environment.etc for redirects

This commit is contained in:
tv 2023-07-05 13:33:19 +02:00
parent 9e51ec86e7
commit 75e405c156

View File

@ -44,13 +44,13 @@ in
networking.nftables.checkRulesetRedirects = mkOption {
type = types.addCheck (types.attrsOf types.path) (attrs: all types.path.check (attrNames attrs));
default = {
"/etc/protocols" = "${pkgs.buildPackages.iana-etc}/etc/protocols";
"/etc/services" = "${pkgs.buildPackages.iana-etc}/etc/services";
"/etc/protocols" = config.environment.etc.protocols.source;
"/etc/services" = config.environment.etc.services.source;
};
defaultText = literalExpression ''
{
"/etc/protocols" = "''${pkgs.buildPackages.iana-etc}/etc/protocols";
"/etc/services" = "''${pkgs.buildPackages.iana-etc}/etc/services";
"/etc/protocols" = config.environment.etc.protocols.source;
"/etc/services" = config.environment.etc.services.source;
}
'';
description = mdDoc ''