server and other shit
This commit is contained in:
parent
270e1a0be4
commit
804371bf96
65 changed files with 1428 additions and 619 deletions
26
modules/apps/messaging/default.nix
Normal file
26
modules/apps/messaging/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
apps.messaging = {
|
||||
signal.enable = lib.mkEnableOption "enable signal";
|
||||
element = {
|
||||
enable = lib.mkEnableOption "enable element";
|
||||
selfhosted = lib.mkEnableOption "selfhosted matrix server?";
|
||||
};
|
||||
};
|
||||
};
|
||||
config = {
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (if config.apps.messaging.element.enable then [ element-desktop ] else [ ])
|
||||
++ (if config.apps.messaging.signal.enable then [ signal-desktop ] else [ ]);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue