Nheko module
This commit is contained in:
parent
e25a0f4795
commit
ac021571c3
3 changed files with 39 additions and 1 deletions
35
modules/home/programs/nheko/default.nix
Normal file
35
modules/home/programs/nheko/default.nix
Normal 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;
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue