module/outputs: use mkIf for wrapRc

Implement the `wrapRc` option using `lib.mkIf` instead of using _real_
`if` branches.
This commit is contained in:
Matt Sturgeon 2024-07-17 15:23:28 +01:00
parent 6975ee09f5
commit bc7a7ad1d6
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -292,6 +292,6 @@ in
vim.opt.runtimepath:remove(vim.fn.stdpath('data') .. "/site") -- ~/.local/share/nvim/site vim.opt.runtimepath:remove(vim.fn.stdpath('data') .. "/site") -- ~/.local/share/nvim/site
''; '';
extraPlugins = if config.wrapRc then [ config.filesPlugin ] else [ ]; extraPlugins = lib.mkIf config.wrapRc [ config.filesPlugin ];
}; };
} }