{"id":17786677,"url":"https://github.com/signalwalker/nix.pkg.comentario","last_synced_at":"2025-04-01T23:46:18.122Z","repository":{"id":258392537,"uuid":"872502498","full_name":"SignalWalker/nix.pkg.comentario","owner":"SignalWalker","description":"A Nix flake packaging Comentario, an open-source comment engine.","archived":false,"fork":false,"pushed_at":"2024-10-17T16:15:28.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:34:57.470Z","etag":null,"topics":["comentario","nix","nixos"],"latest_commit_sha":null,"homepage":"https://comentario.app/","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SignalWalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-14T14:46:45.000Z","updated_at":"2025-01-07T20:20:20.000Z","dependencies_parsed_at":"2024-10-19T03:31:48.375Z","dependency_job_id":null,"html_url":"https://github.com/SignalWalker/nix.pkg.comentario","commit_stats":null,"previous_names":["signalwalker/nix.pkg.comentario"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignalWalker%2Fnix.pkg.comentario","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignalWalker%2Fnix.pkg.comentario/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignalWalker%2Fnix.pkg.comentario/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SignalWalker%2Fnix.pkg.comentario/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SignalWalker","download_url":"https://codeload.github.com/SignalWalker/nix.pkg.comentario/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246730262,"owners_count":20824396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comentario","nix","nixos"],"created_at":"2024-10-27T10:04:22.008Z","updated_at":"2025-04-01T23:46:18.079Z","avatar_url":"https://github.com/SignalWalker.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nix Flake for Comentario\n\nA [Nix](https://nixos.org/) flake packaging [Comentario](https://comentario.app/), an open-source comment engine.\n\n## Usage\n\nImport the nixpkgs overlay and NixOS module:\n```nix\ninputs = {\n    nixpkgs.url = \"github:NixOS/nixpkgs\";\n    comentario = {\n        url = \"github:SignalWalker/nix.pkg.comentario\";\n        inputs.nixpkgs.follows = \"nixpkgs\";\n    };\n};\noutputs = inputs @ {\n    self,\n    nixpkgs,\n    comentario,\n    ...\n}: {\n    nixosConfigurations.\"example\" = nixpkgs.lib.nixosSystem {\n        modules = [\n            comentario.nixosModules.default\n            ({config, pkgs, lib, ...}: {\n                config = {\n                    nixpkgs.overlays = [\n                        comentario.overlays.default\n                    ];\n                };\n             })\n        ];\n    };\n};\n```\n\nConfigure the service:\n```nix\n{ config, pkgs, lib, ...}: let\n    com = config.services.comentario;\nin {\n    config = {\n        services.comentario = {\n            enable = true;\n            # These are the environment variables defined in the Comentario docs: https://docs.comentario.app/en/configuration/backend/static/\n            settings = {\n                HOST = \"localhost\";\n                PORT = 8080;\n                BASE_URL = \"https://${com.virtualHost.domain}\";\n                # The service will fail if the secrets file doesn't exist or isn't accessible at runtime.\n                # Make sure to make it readable by the comentario user/group (`config.services.comentario.user`).\n                SECRETS_FILE = \"/etc/comentario/secrets.yaml\";\n            };\n            virtualHost = {\n                domain = \"comments.website.example\";\n                # This enables a simple NGINX vhost.\n                nginx.enable = true;\n            };\n        };\n        services.nginx = {\n            enable = true;\n            virtualHosts.${com.virtualHost.domain} = {\n                # SSL is optional\n                enableACME = true;\n                forceSSL = true;\n            };\n        };\n    };\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalwalker%2Fnix.pkg.comentario","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignalwalker%2Fnix.pkg.comentario","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalwalker%2Fnix.pkg.comentario/lists"}