diff --git a/machines/lucia/configuration.nix b/machines/lucia/configuration.nix index 7d9d05ae..516a6ac6 100644 --- a/machines/lucia/configuration.nix +++ b/machines/lucia/configuration.nix @@ -150,6 +150,44 @@ in }; }; + environment.systemPackages = with pkgs; [ + mpd + mpv + ncmpcpp + ncpamixer + pulseaudio + vim + htop + wget + git + pciutils + nix-tree + ]; + + hardware.pulseaudio = { + enable = true; + systemWide = true; + tcp = { + enable = true; + anonymousClients.allowedIpRanges = [ + "127.0.0.0/8" + "192.168.1.0/24" + ]; + }; + + zeroconf.publish.enable = true; + }; + + services.avahi = { + enable = true; + nssmdns = true; + publish = { + enable = true; + addresses = true; + userServices = true; + }; + }; + security.acme = { acceptTerms = true; defaults.email = "malobeo@systemli.org"; @@ -184,16 +222,8 @@ in }; - networking.firewall.allowedTCPPorts = [ 80 443 ]; - - environment.systemPackages = with pkgs; [ - vim - htop - wget - git - pciutils - nix-tree - ]; + networking.firewall.allowedTCPPorts = [ 80 443 4713 ]; + networking.firewall.allowedUDPPorts = [ 5353 9875 ]; system.stateVersion = "23.05"; }