aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common/optional/services
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-06-19 01:45:25 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-06-19 01:45:25 -0700
commit7fb2738c48fadadfb888c38987ac54046a391f62 (patch)
tree74b8f3435b491929b103f9fb88d27175e47c3410 /hosts/common/optional/services
parent27251f7915ef97ab639ff0c99f58baab229c1d9c (diff)
downloadnix-7fb2738c48fadadfb888c38987ac54046a391f62.tar
nix-7fb2738c48fadadfb888c38987ac54046a391f62.tar.gz
nix-7fb2738c48fadadfb888c38987ac54046a391f62.tar.bz2
nix-7fb2738c48fadadfb888c38987ac54046a391f62.tar.lz
nix-7fb2738c48fadadfb888c38987ac54046a391f62.tar.xz
nix-7fb2738c48fadadfb888c38987ac54046a391f62.tar.zst
nix-7fb2738c48fadadfb888c38987ac54046a391f62.zip
Test services.asterisk.useTheseDefaultConfFiles
Diffstat (limited to 'hosts/common/optional/services')
-rw-r--r--hosts/common/optional/services/asterisk.nix165
1 files changed, 83 insertions, 82 deletions
diff --git a/hosts/common/optional/services/asterisk.nix b/hosts/common/optional/services/asterisk.nix
index 7bbd096..6d80875 100644
--- a/hosts/common/optional/services/asterisk.nix
+++ b/hosts/common/optional/services/asterisk.nix
@@ -2,91 +2,92 @@
{
services.asterisk = {
enable = true;
+ useTheseDefaultConfFiles = [];
};
- sops = {
- secrets = {
- "asterisk/asterisk.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/cdr.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/console.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/extensions.ael" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/indications.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/logger.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/modules.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/musiconhold.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/pjsip.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/pjsip_notify.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/rtp.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- "asterisk/voicemail.conf" = {
- owner = config.users.users.asterisk.name;
- group = config.users.users.asterisk.group;
- mode = "00400";
- };
- };
- };
+ #sops = {
+ # secrets = {
+ # "asterisk/asterisk.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/cdr.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/console.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/extensions.ael" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/indications.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/logger.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/modules.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/musiconhold.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/pjsip.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/pjsip_notify.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/rtp.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # "asterisk/voicemail.conf" = {
+ # owner = config.users.users.asterisk.name;
+ # group = config.users.users.asterisk.group;
+ # mode = "00400";
+ # };
+ # };
+ #};
systemd.services.asterisk = {
- serviceConfig.ExecStart = lib.mkForce "${pkgs.asterisk}/bin/asterisk -U asterisk -C ${config.sops.secrets."asterisk/asterisk.conf".path} -F";
- unitConfig = {
- ConditionPathExists = [
- config.sops.secrets."asterisk/asterisk.conf".path
- config.sops.secrets."asterisk/cdr.conf".path
- config.sops.secrets."asterisk/console.conf".path
- config.sops.secrets."asterisk/extensions.ael".path
- config.sops.secrets."asterisk/indications.conf".path
- config.sops.secrets."asterisk/logger.conf".path
- config.sops.secrets."asterisk/modules.conf".path
- config.sops.secrets."asterisk/musiconhold.conf".path
- config.sops.secrets."asterisk/pjsip.conf".path
- config.sops.secrets."asterisk/pjsip_notify.conf".path
- config.sops.secrets."asterisk/rtp.conf".path
- config.sops.secrets."asterisk/voicemail.conf".path
- ];
- };
- #wantedBy = lib.mkForce [];
+ #serviceConfig.ExecStart = lib.mkForce "${pkgs.asterisk}/bin/asterisk -U asterisk -C ${config.sops.secrets."asterisk/asterisk.conf".path} -F";
+ #unitConfig = {
+ # ConditionPathExists = [
+ # config.sops.secrets."asterisk/asterisk.conf".path
+ # config.sops.secrets."asterisk/cdr.conf".path
+ # config.sops.secrets."asterisk/console.conf".path
+ # config.sops.secrets."asterisk/extensions.ael".path
+ # config.sops.secrets."asterisk/indications.conf".path
+ # config.sops.secrets."asterisk/logger.conf".path
+ # config.sops.secrets."asterisk/modules.conf".path
+ # config.sops.secrets."asterisk/musiconhold.conf".path
+ # config.sops.secrets."asterisk/pjsip.conf".path
+ # config.sops.secrets."asterisk/pjsip_notify.conf".path
+ # config.sops.secrets."asterisk/rtp.conf".path
+ # config.sops.secrets."asterisk/voicemail.conf".path
+ # ];
+ #};
+ wantedBy = lib.mkForce [];
};
}