Warning
This repository is being archived. Please move to custom-packages-flake for future updates.
This repository provides a Nix flake for Seanime, an open-source media server with a web interface and desktop app for anime and manga. The flake includes the Seanime server and a NixOS module for easy integration into Home Manager configuration.
- Pre-built Seanime Package: The flake provides a pre-built Seanime package for
x86_64-linux. - NixOS Module: Easily enable Seanime as a systemd user service with the included NixOS module.
- Dependency Management: Automatically handles dependencies like
mpvfor video playback.
You can run Seanime directly using the flake without integrating it into your NixOS configuration:
nix run github:rishabh5321/seanime-flakeYou can install Seanime directly using the flake without integrating it into your NixOS configuration:
nix profile install github:rishabh5321/seanime-flake#seanimeThen to start the app use seanime or run seanime in terminal
Currently home-manager is necessary for having for building the server as this flake creates a service for user not system.
- Add the seanime flake to your flake.nix inputs.
seanime.url = "github:rishabh5321/seanime-flake";- Import the seanime module in your NixOS configuration in home.nix:
{ inputs, ... }: {
imports = [
inputs.seanime.nixosModules.seanime # import this in home.nix
];
}- Enable seanime module in home.nix
modules.home.services.seanime.enable = true;- Rebuild your system:
sudo nixos-rebuild switch --flake .#<your-hostname>OR
nh os boot --hostname <your-hostname> <your-flake-dir>- Start the Seanime service:
systemctl --user start seanimeThe seanime flake provides the following options:
NixOS Module Options:
modules.home.services.seanime.enable: Enable or disable the Seanime service.
Here’s an example of how to configure Seanime in your NixOS configuration: (In home.nix)
{ config, pkgs, inputs, ... }: # this is for home.nix
{
imports = [
inputs.seanime.nixosModules.seanime
];
modules.home.services.seanime.enable = true;
}mpv Not Found
If Seanime fails to play videos with the error exec: "mpv": executable file not found in $PATH, ensure that mpv is installed and available in the $PATH. You can add mpv to your system or user packages:
Add mpv to environment.systemPackages in your NixOS configuration:
environment.systemPackages = with pkgs; [
mpv
];OR
Add mpv to home.packages in your Home Manager configuration:
home.packages = with pkgs; [
mpv
];If the Seanime service fails to start, check the logs for more details:
journalctl --user -u seanime -fContributions to this flake are welcome! Here’s how you can contribute:
- Fork the repository.
- Create a new branch for your changes:
git checkout -b my-feature- Commit your changes:
git commit -m "Add my feature"- Push the branch to your fork:
git push origin my-feature- Open a pull request on GitHub.
This flake is licensed under the MIT License. Seanime itself is licensed under the GPL-3.0 License.
- Seanime by 5rahim for the amazing media server.
- Th4tGuy69 for their NixOS configuration that inspired parts of this flake.
- 70705 for their flake setup that helped streamline this project.
- The NixOS community for their support and resources.