mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Remove all uses of lib.flatten
This commit is contained in:
parent
23762ecb29
commit
b7d927cb39
4 changed files with 27 additions and 32 deletions
|
|
@ -90,12 +90,12 @@ in
|
|||
'';
|
||||
in
|
||||
[
|
||||
"crowdsecurity/linux"
|
||||
(lib.singleton "crowdsecurity/linux")
|
||||
(lib.optional (lib.elem "sshd" cfg.sources) "crowdsecurity/sshd")
|
||||
(lib.optional (lib.elem "caddy" cfg.sources) "crowdsecurity/caddy")
|
||||
(lib.optional (lib.elem "iptables" cfg.sources) "crowdsecurity/iptables")
|
||||
]
|
||||
|> lib.flatten
|
||||
|> lib.concatLists
|
||||
|> lib.map installCollection
|
||||
|> lib.concatLines
|
||||
|> (text: pkgs.writeShellScript "crowdsec-install-collections" "set -e\n${text}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue