Use avahi-daemon release candidate
Let's see if this fixes the high CPU load issues.
This commit is contained in:
parent
d139988fa9
commit
5cb7783a16
1 changed files with 28 additions and 1 deletions
|
|
@ -1,8 +1,35 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
lib.mkIf config.jalr.gui.enable {
|
lib.mkIf config.jalr.gui.enable {
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package =
|
||||||
|
let
|
||||||
|
xmltoman = pkgs.xmltoman.overrideAttrs (_: {
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.installShellFiles
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
(pkgs.perl.withPackages (pl: [
|
||||||
|
pl.XMLParser
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pkgs.avahi.overrideAttrs (o: rec {
|
||||||
|
version = "0.9-rc2";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://github.com/avahi/avahi/archive/refs/tags/v${version}.tar.gz";
|
||||||
|
sha256 = "sha256-9k7+1qlyz5LLLfs1q/aqkXPWK4Q7FYUML0CvdqQjj4o=";
|
||||||
|
};
|
||||||
|
patches = [ ];
|
||||||
|
buildInputs = o.buildInputs ++ [ pkgs.systemdLibs ];
|
||||||
|
nativeBuildInputs = o.nativeBuildInputs ++ [ xmltoman ];
|
||||||
|
installFlags = [
|
||||||
|
"runstatedir=${placeholder "out"}/run"
|
||||||
|
"sysconfdir=${placeholder "out"}/etc"
|
||||||
|
];
|
||||||
|
});
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
[server]
|
[server]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue