Self-hostingPlatforms
NixOS
Short version
Section titled "Short version"Nixpkgs has no Fluxer package or module, so you run Fluxer's container image. You need a NixOS machine with 2 CPU cores, 2 GB of memory at least and 4 GB for a busy instance, and 20 GB of free disk, and a domain that points at it, or the machine's IP address. Add the container below to your configuration, write fluxer.env and run nixos-rebuild switch. The install takes about 15 minutes from start to finish.
What this changes
Section titled "What this changes"- A systemd service called
podman-fluxer.service, ordocker-fluxer.servicewith the Docker backend, that runs the container. With the Docker backend, usedockerin place ofpodmanin the commands below. - One volume called
fluxer-data. - TCP ports 80, 443 and 7881, and UDP ports 443 and 7882, opened in the NixOS firewall.
Before you start
Section titled "Before you start"Check the requirements. Pick a place for fluxer.env outside the Nix store, such as /etc/fluxer/fluxer.env, because the store can be read by every user on the machine.
Install
Section titled "Install"-
Write the settings file as root.
sudo install -d -m 0750 /etc/fluxer echo 'FLUXER_DOMAIN= | sudo tee /etc/chat.example.com' fluxer/ fluxer.env echo 'FLUXER_UPGRADE_ image to ghcr.io/COMMAND= Set fluxerapp/ in your NixOS configuration and run nixos-rebuild switch' | sudo tee -a /etc/fluxer/fluxer:{version} fluxer.env Use your own domain. The second line is the upgrade step that the admin panel shows you when a newer release of Fluxer is out and the release check is on.
-
Add the container to your configuration, for example in
configuration.nix.configuration.nix virtualisation.podman. = true;enable virtualisation.oci-containers.backend = "podman";virtualisation.oci-containers.containers. = {fluxer image = "ghcr.io/fluxerapp/ fluxer:2026.1124.80040"; environmentFiles = [ "/etc/ ];fluxer/ fluxer.env" volumes = [ "fluxer-data:/var/ ];lib/ fluxer" ports = [ "80:80" "443:443" "443:443/udp" "7881:7881" "7882:7882/udp" ];extraOptions = [ "--sysctl=net.ipv4.ip_ "--stop-timeout=unprivileged_ port_ start= 0" 130" ];};systemd.services. = lib.podman-fluxer. serviceConfig. TimeoutStopSec mkForce 150;networking.firewall. = [ 80 443 7881 ];allowedTCPPorts networking.firewall. = [ 443 7882 ];allowedUDPPorts lib.mkForceneedslibin the argument list at the top of the file, such as{ config, lib, pkgs, ... }:. Then runsudo nixos-rebuild dry-build, which checks the configuration and ends without errors. -
Apply it.
sudo nixos-rebuild switchThe first start pulls the image and takes a few minutes, then
systemctl status podman-fluxershowsactive (running). -
Print the setup token.
sudo podman exec fluxer fluxerd setup-tokenOpen your domain and paste the token to create the first admin account.
Upgrade
Section titled "Upgrade"Change the tag in image and run nixos-rebuild switch. nixos-rebuild switch --rollback goes back to the older image but doesn't roll back the database. Restore the database with the fluxerd restore command the older release logs.