nixos/avahi: add debug option
This commit is contained in:
@@ -276,6 +276,8 @@ in
|
|||||||
Extra config to append to avahi-daemon.conf.
|
Extra config to append to avahi-daemon.conf.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
debug = lib.mkEnableOption "debug logging";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -356,7 +358,7 @@ in
|
|||||||
NotifyAccess = "main";
|
NotifyAccess = "main";
|
||||||
BusName = "org.freedesktop.Avahi";
|
BusName = "org.freedesktop.Avahi";
|
||||||
Type = "dbus";
|
Type = "dbus";
|
||||||
ExecStart = "${cfg.package}/sbin/avahi-daemon --syslog -f ${avahiDaemonConf}";
|
ExecStart = "${cfg.package}/sbin/avahi-daemon --syslog -f ${avahiDaemonConf} ${lib.optionalString cfg.debug "--debug"}";
|
||||||
ConfigurationDirectory = "avahi/services";
|
ConfigurationDirectory = "avahi/services";
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
publish.userServices = true;
|
publish.userServices = true;
|
||||||
publish.workstation = true;
|
publish.workstation = true;
|
||||||
extraServiceFiles.ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
extraServiceFiles.ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||||
|
debug = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// pkgs.lib.optionalAttrs networkd {
|
// pkgs.lib.optionalAttrs networkd {
|
||||||
|
|||||||
Reference in New Issue
Block a user