mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
irssi: fix syntax error when no channels are specified
(cherry picked from commit 5d4327cff4
)
This commit is contained in:
parent
47ae373e74
commit
a8d00f5c03
1 changed files with 9 additions and 8 deletions
|
@ -44,14 +44,15 @@ let
|
|||
}
|
||||
''));
|
||||
|
||||
channelString = concatStringsSep cnl (flip mapAttrsToList cfg.networks (k: v:
|
||||
concatStringsSep cnl (flip mapAttrsToList v.channels (c: cv: ''
|
||||
{
|
||||
chatnet = "${k}";
|
||||
name = "${c}";
|
||||
autojoin = "${boolStr cv.autoJoin}";
|
||||
}
|
||||
''))));
|
||||
channelString = concatStringsSep cnl (concatLists
|
||||
(flip mapAttrsToList cfg.networks (k: v:
|
||||
(flip mapAttrsToList v.channels (c: cv: ''
|
||||
{
|
||||
chatnet = "${k}";
|
||||
name = "${c}";
|
||||
autojoin = "${boolStr cv.autoJoin}";
|
||||
}
|
||||
'')))));
|
||||
|
||||
channelType = types.submodule {
|
||||
options = {
|
||||
|
|
Loading…
Reference in a new issue