Configure Wayland notification daemon mako with NixOS home-manager
Since this year I started using NixOS as my main operating system used in production. So far I’m really excited configuring and using it. Although there are still quite a few packages and configuration options missing. Compared to ArchLinux, I have to solve some problems again which were already fixed on my old installation. For me, the main advantage of preconfiguring the complete system state in text files outweigh all the extra effort :)
Using home-manager it is even possible to configure programs in user-space. I created a additional module for the Wayland notification daemon mako, which is now waiting for inclusion upstream. Now I’m able to overwrite the default behavior of mako in my configuration like this:
home-manager.users.onny = {
[...]
programs.mako = {
enable = true;
defaultTimeout = 4000;
};
[...]
};
Of course there are plenty of other parameters which can be adjusted.
If you want to try this module before it hits upstream you could use my fork of the home-manager repository:
[...]
{
imports =
[
"${builtins.fetchTarball https://github.com/onny/home-manager/archive/master.tar.gz}/nixos"
];
home-manager.users.onny = {
[...]
Update April 2020: The module has been merged and will be available in the 20.03 release of Home-Manager.