mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
nixos/nftables: use environment.etc for redirects
This commit is contained in:
parent
9e51ec86e7
commit
75e405c156
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user