gnome-calls: don't auto-start
This commit is contained in:
parent
7f944ad4a1
commit
2b48adfbef
|
@ -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`
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user