nixpkgs/home/modules/programs/signald.nix
Daniel Siepmann 6d5f3cc626
Initial add Pidgin for IM
I've added the following myself:

* mattermost
* purple-signald (waiting for https://github.com/NixOS/nixpkgs/issues/188384)
* purple-events
* purple-libnotify

and added slack from nixpkgs.
I'm also trying to make signal integration work.

Not sure whether I'll keep pidgin, as I expect video calls from within
slack not to work.
But would be cool to have a single open source messenger instead of x
instances of chromium as wrapper around closed source web applications.
2022-08-26 13:19:09 +02:00

39 lines
800 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.signald;
in {
options.programs.signald = {
enable = mkEnableOption "signald";
package = mkOption {
type = types.package;
default = pkgs.signald;
description = "signald package to install.";
};
};
config = mkIf cfg.enable {
systemd.user.services.signald = {
Unit = {
Description = "A daemon for interacting with the Signal Private Messenger";
Wants = "network.target";
After = "network.target";
};
Service = {
Type = "simple";
ExecStart = "${cfg.package}/bin/signald";
Restart = "on-failure";
SuccessExitStatus = "143";
};
Install = {
WantedBy = [ "multi-user.target" ];
};
};
};
}