gnome-calls: don't auto-start

This commit is contained in:
Colin 2023-09-21 19:44:11 +00:00
parent 7f944ad4a1
commit 2b48adfbef
2 changed files with 14 additions and 2 deletions

View File

@ -48,6 +48,7 @@
sane.programs.eg25-control.enableFor.user.colin = true;
sane.programs.dino.config.autostart = true;
# sane.programs.calls.config.autostart = true;
# sane.programs.firefox.mime.priority = 300; # prefer other browsers when possible
# HACK/TODO: make `programs.P.env.VAR` behave according to `mime.priority`

View File

@ -20,6 +20,16 @@ let
in
{
sane.programs.calls = {
configOption = with lib; mkOption {
default = {};
type = types.submodule {
options.autostart = mkOption {
type = types.bool;
default = false;
};
};
};
persist.private = [
# ".cache/folks" # contact avatars?
# ".config/calls"
@ -32,13 +42,14 @@ in
];
services.gnome-calls = {
# TODO: prevent gnome-calls from daemonizing when started manually
description = "gnome-calls daemon to monitor incoming SIP calls";
wantedBy = [ "default.target" ];
wantedBy = lib.mkIf cfg.config.autostart [ "default.target" ];
serviceConfig = {
# add --verbose for more debugging
ExecStart = "${cfg.package}/bin/gnome-calls --daemon";
Type = "simple";
Restart = "on-failure";
Restart = "always";
RestartSec = "10s";
};
environment.G_MESSAGES_DEBUG = "all";