Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea postgres autocreate database #36924

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

etu
Copy link
Contributor

@etu etu commented Mar 13, 2018

Motivation for this change

Before these changes it was required to enable postgres yourself and set up a role and everything to be able to use it.

After these changes it does all of this for you:

  # Gitea
  services.gitea.enable = true;
  services.gitea.appName = "My Git Service";
  services.gitea.rootUrl = "http://git2.example.com/";
  services.gitea.database.type = "postgres";
  services.gitea.database.password = "this-is-my-database-password";
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg GrahamcOfBorg added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels Mar 13, 2018
@etu etu force-pushed the gitea-postgres-autocreate-database branch from ae9aec6 to de34e34 Compare March 13, 2018 20:24
@etu
Copy link
Contributor Author

etu commented Mar 14, 2018

cc @disassembler maybe?

@etu etu force-pushed the gitea-postgres-autocreate-database branch 2 times, most recently from b464477 to 7a9a45c Compare March 14, 2018 11:04
@etu etu force-pushed the gitea-postgres-autocreate-database branch from 7a9a45c to 1ad75d0 Compare March 15, 2018 17:35
@disassembler disassembler merged commit 5931f46 into NixOS:master Mar 15, 2018
@etu etu deleted the gitea-postgres-autocreate-database branch March 15, 2018 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants