mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
irssi: fix syntax error when no channels are specified
This commit is contained in:
committed by
Robert Helgesson
parent
da1f6fab90
commit
5d4327cff4
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user