LMS (Lightweight Music Server)
Appearance
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 ];
};