Daniel Siepmann
6d5f3cc626
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.
39 lines
800 B
Nix
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" ];
|
|
};
|
|
};
|
|
};
|
|
}
|