A flake to easily deploy glitchtip on nixos.
Find a file
2025-08-09 09:22:14 +02:00
default.nix Merge pull request #3 from afrepues/run-migrations 2024-02-06 09:08:33 +01:00
flake.lock Create basic flake 2022-12-16 18:31:40 +01:00
flake.nix Create basic flake 2022-12-16 18:31:40 +01:00
README.md Update README.md 2025-08-09 09:22:14 +02:00

Glitchtip flake

A flake to easily deploy glitchtip on nixos.

Warning

I am currently not using this anymore - so this project is not getting any maintenance

How to use

If you have your system set up with flakes, you can add Glitchtip as a service to your system flake:

{
  # add this flake as an input
  inputs.glitchtip = {
    url = "github:robbevp/glitchtip-flake";
    inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, glitchtip }: {
    # change `yourhostname` to your actual hostname
    nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
      # change to your system:
      system = "x86_64-linux";
      modules = [
        glitchtip.nixosModule

        # your configuration
        ./configuration.nix
      ];
    };
  };
}

Next, you can enable this service as if it is a normal NixOS service:

{
  services.glitchtip = {
    enable = true;
    hostname = "glitchtip.example.com";
    defaultFromEmail = "info@example.com";
    environmentFile = "/var/lib/glitchtip/secret.env";
  };
}