mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
shorewall: fix warnings due to types.loaOf being deprecated (#80154)
This commit is contained in:
parent
1df3c86f2e
commit
f9be656873
@ -33,7 +33,6 @@ in {
|
|||||||
The attribute name defines the name of the config,
|
The attribute name defines the name of the config,
|
||||||
and the attribute value defines the content of the config.
|
and the attribute value defines the content of the config.
|
||||||
'';
|
'';
|
||||||
apply = lib.mapAttrs (name: text: pkgs.writeText "${name}" text);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -63,12 +62,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
etc = lib.mapAttrsToList
|
etc = lib.mapAttrs' (name: conf: lib.nameValuePair "shorewall/${name}" {text=conf;}) cfg.configs;
|
||||||
(name: file:
|
|
||||||
{ source = file;
|
|
||||||
target = "shorewall/${name}";
|
|
||||||
})
|
|
||||||
cfg.configs;
|
|
||||||
systemPackages = [ cfg.package ];
|
systemPackages = [ cfg.package ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -33,7 +33,6 @@ in {
|
|||||||
The attribute name defines the name of the config,
|
The attribute name defines the name of the config,
|
||||||
and the attribute value defines the content of the config.
|
and the attribute value defines the content of the config.
|
||||||
'';
|
'';
|
||||||
apply = lib.mapAttrs (name: text: pkgs.writeText "${name}" text);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -63,12 +62,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
etc = lib.mapAttrsToList
|
etc = lib.mapAttrs' (name: conf: lib.nameValuePair "shorewall6/${name}" {text=conf;}) cfg.configs;
|
||||||
(name: file:
|
|
||||||
{ source = file;
|
|
||||||
target = "shorewall6/${name}";
|
|
||||||
})
|
|
||||||
cfg.configs;
|
|
||||||
systemPackages = [ cfg.package ];
|
systemPackages = [ cfg.package ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user