chore: Add base configuration.
This commit is contained in:
parent
a92de43a60
commit
612c7e2f16
18 changed files with 700 additions and 10 deletions
17
system/avahifixes.nix
Executable file
17
system/avahifixes.nix
Executable file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# local name resolution
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
nssmdns4 = true;
|
||||
};
|
||||
system.nssModules = lib.optional true pkgs.nssmdns;
|
||||
system.nssDatabases.hosts = lib.optionals true (pkgs.lib.mkMerge [
|
||||
(lib.mkBefore ["mdns4_minimal [NOTFOUND=return]"]) # before resolution
|
||||
(lib.mkAfter ["mdns4"]) # after dns
|
||||
]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue