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

@ -114,6 +114,9 @@
channels-config = {
allowUnfree = true;
permittedInsecurePackages = [
"olm-3.2.16"
];
};
overlays = with inputs; [

View file

@ -17,12 +17,12 @@ in
enable = true;
firstNixOSInstall = 1729112485;
};
nheko.enable = osConfig.custom.presets.wayland.enable;
librewolf.enable = osConfig.custom.presets.wayland.enable;
prismlauncher.enable = osConfig.custom.presets.gaming.enable;
bottles.enable = osConfig.custom.presets.wayland.enable;
};
};
programs.nheko.enable = custom.presets.wayland.enable;
home = {
packages = with pkgs;
[

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;
};
});
}