Jump to content

LMS (Lightweight Music Server)

From Official NixOS Wiki
Revision as of 13:32, 7 November 2026 by Gamebeaker (talk | contribs) (Add wiki page on how to use pkgs.lms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LMS (Lightweight Music Server) is a self-hosted music streaming software.

Installation

In your configuration file add:

❄︎ /etc/nixos/configuration.nix
systemd.packages = with pkgs; [ lms ];
systemd.services.lmsd = {
  enable = true;
  wantedBy = [ "multi-user.target" ];
};
# lms uses its own user permissions for it's working directory
users.groups.lms = { };
users.users.lms = {
  group = config.users.groups.lms.name;
  isSystemUser = true;
  # the working directory can't be changed as it is hard coded in the nix package
  home = "/var/lms";
};
networking.firewall = {
  enable = true;
  # the port can't be changed as it is hard coded in the nix package
  allowedTCPPorts = [ 5082 ];
};