mirror of
https://github.com/robbevp/glitchtip-flake.git
synced 2025-08-16 04:09:51 +02:00
A flake to easily deploy glitchtip on nixos.
default.nix | ||
flake.lock | ||
flake.nix | ||
README.md |
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";
};
}