diff --git a/configuration.nix b/configuration.nix index 38e513c..8d0822d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,7 +14,7 @@ ./modules/intel-gpu.nix ]; - # Bootloader. + # Bootloader boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.loader.grub.configurationLimit = 10; @@ -50,6 +50,34 @@ networking.hostName = "greynix"; # Define your hostname. 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 # Disable sudo password for the wheel group security.sudo.wheelNeedsPassword = false;