added avahi settings
This commit is contained in:
parent
05cf81b10b
commit
d08bb105bc
1 changed files with 29 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
./modules/intel-gpu.nix
|
./modules/intel-gpu.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.loader.grub.configurationLimit = 10;
|
boot.loader.grub.configurationLimit = 10;
|
||||||
|
@ -50,6 +50,34 @@
|
||||||
networking.hostName = "greynix"; # Define your hostname.
|
networking.hostName = "greynix"; # Define your hostname.
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
#Recommended if you plan to use networked printers, scanners, or file shares.
|
||||||
|
services.avahi = {
|
||||||
|
enable = true; # Start the Avahi daemon.
|
||||||
|
ipv4 = true; # Enable mDNS for IPv4.
|
||||||
|
ipv6 = true; # Enable mDNS for IPv6.
|
||||||
|
nssmdns4 = true; # Enable mDNS resolution for IPv4.
|
||||||
|
nssmdns6 = true; # Enable mDNS resolution for IPv6.
|
||||||
|
publish = {
|
||||||
|
enable = true; # Allow publishing services.
|
||||||
|
addresses = true; # Broadcast local IP addresses.
|
||||||
|
workstation = true; # Advertise as a "workstation" on the network.
|
||||||
|
hinfo = true; # Share hardware info (e.g. CPU/OS).
|
||||||
|
userServices = true; # Allow user-level services to be advertised.
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.etc."nsswitch.conf".text = ''
|
||||||
|
passwd: files systemd
|
||||||
|
group: files systemd
|
||||||
|
shadow: files systemd
|
||||||
|
hosts: files mdns4_minimal mdns6_minimal [NOTFOUND=return] dns mdns4 mdns6 wins
|
||||||
|
networks: files
|
||||||
|
protocols: db files
|
||||||
|
services: db files
|
||||||
|
ethers: db files
|
||||||
|
rpc: db files
|
||||||
|
'';
|
||||||
|
|
||||||
# Sudo options
|
# Sudo options
|
||||||
# Disable sudo password for the wheel group
|
# Disable sudo password for the wheel group
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue