Nheko module

This commit is contained in:
Aleksandr Lebedev 2025-08-13 18:42:07 +02:00
parent e25a0f4795
commit ac021571c3
3 changed files with 39 additions and 1 deletions

View file

@ -0,0 +1,35 @@
{
lib,
pkgs,
inputs,
namespace,
system,
target,
format,
virtual,
systems,
config,
...
}:
with lib;
with lib.${namespace}; let
cfg = config.${namespace}.programs.nheko;
impermanence = config.${namespace}.impermanence;
in {
options.${namespace}.programs.nheko = with types; {
enable = mkBoolOpt false "Enable Nheko - Matrix client written in C++";
};
config = mkIf cfg.enable (mkIf impermanence.enable {
home.persistence."${impermanence.persistentStorage}".directories = [
".config/nheko"
".local/share/nheko"
".cache/nheko"
];
}
// {
programs.nheko = {
enable = true;
};
});
}