Skip to content

juspay/awesome-selfhosted-nixos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

awesome-selfhosted-nixos

This repository catalogs various services that can be self-hosted on NixOS, providing users with an effective initial configuration to start with. The objective is to promote the simplest methods for replacing various proprietary services using a machine running NixOS.

Media

For managing videos, music and photos.

Jellyfin provides a self-hosted alternative to the likes of Netflix and Spotify.

services.jellyfin = {
  enable = true;
  openFirewall = true;
};

Tip:

  • Create a dedicated folder (e.g.: /Data) owned by the Unix group jellyfin organizing your content inside it.
  • There is an official Android app, but non-unofficial apps exist to provide new functionality (e.g.: offline support)

navidrome is a Web UI (with compatible mobile apps) that streams your music files, providing a self-hosted alternative to Spotify.

services.navidrome = {
  enable = true;
  settings = {
    Address = "127.0.0.1";
    Port = 4533;
    MusicFolder = "/var/lib/navidrome/Music";
  };
  openFirewall = true;
};

Tip: Use yt-dlp -x <url> to download YouTube videos as audio, and place them under MusicFolder (owned by navidrome user) to start populating your music library (credit).

File management

Like Dropbox, but OSS and better. We use home-manager because this way it works on both Linux & macOS.

Once activated, go to http://localhost:8384 to access the Syncthing GUI.

# Add this to your home-manager config
{
  services.syncthing = {
    enable = true;

    # Optional: Configure settings
    settings = {
      gui = {
        theme = "dark";
        insecureAdminAccess = false;
      };
      options = {
        urAccepted = -1; # Disable usage reporting
        crashReportingEnabled = false;
        announceEnabled = true;
        localAnnounceEnabled = true;
        relaysEnabled = true;
      };
    };
  };
}

About

Example configurations for self-hosting stuff on NixOS

Resources

License

Stars

Watchers

Forks