Nheko module
This commit is contained in:
parent
e25a0f4795
commit
ac021571c3
3 changed files with 39 additions and 1 deletions
|
|
@ -114,6 +114,9 @@
|
|||
|
||||
channels-config = {
|
||||
allowUnfree = true;
|
||||
permittedInsecurePackages = [
|
||||
"olm-3.2.16"
|
||||
];
|
||||
};
|
||||
|
||||
overlays = with inputs; [
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
[
|
||||
|
|
|
|||
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