mirror of
https://github.com/nix-community/srvos.git
synced 2024-09-11 14:17:02 +03:00
commit
e1c34f2d9f
@ -56,6 +56,7 @@ exposeModules ./. [
|
|||||||
./mixins/tracing.nix
|
./mixins/tracing.nix
|
||||||
./mixins/trusted-nix-caches.nix
|
./mixins/trusted-nix-caches.nix
|
||||||
./mixins/nix-experimental.nix
|
./mixins/nix-experimental.nix
|
||||||
|
./mixins/mdns.nix
|
||||||
./roles/github-actions-runner.nix
|
./roles/github-actions-runner.nix
|
||||||
./roles/nix-remote-builder.nix
|
./roles/nix-remote-builder.nix
|
||||||
./roles/prometheus
|
./roles/prometheus
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
../common
|
../common
|
||||||
|
../mixins/mdns.nix
|
||||||
./pipewire.nix
|
./pipewire.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
7
nixos/mixins/mdns.nix
Normal file
7
nixos/mixins/mdns.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ lib, ... }: {
|
||||||
|
# Allows to find machines on the local network by name, i.e. useful for printer discovery
|
||||||
|
systemd.network.networks."99-ethernet-default-dhcp".networkConfig.MulticastDNS = lib.mkDefault "yes";
|
||||||
|
systemd.network.networks."99-wireless-client-dhcp".networkConfig.MulticastDNS = lib.mkDefault "yes";
|
||||||
|
networking.firewall.allowedUDPPorts = [ 5353 ]; # Multicast DNS
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user