feat: add nix packaging and nixos module #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "nixos-flake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #29.
Adds a NixOS module and Nix packaging and a proper devshell for Takina.
The NixOS module supports automatically managed database creation which is enabled by default.
32bcb02c96tod003598046d003598046tof78b91fe47f78b91fe47to2211179a182211179a18tof01bd046cef01bd046cetodea44a2f4849eff76083to2e3a3a23062e3a3a2306to6cbb2278aaef3b36e40cto6bd15959c35b063d4d4eto854d212368@ -0,0 +122,4 @@EMBED_COLOR = cfg.config.embedColor;HASDB = mkIf cfg.database.createLocally "yes";DB_NAME = mkIf cfg.database.createLocally cfg.database.name;MONGO = mkIf cfg.database.createLocally "mongodb://${cfg.database.hostname}:${toString cfg.database.port}/${cfg.database.name}?directConnection=true&appName=takina";I think add
/?directConnection=trueat the end since that's what MongoDB documentation recommendshttps://www.mongodb.com/docs/get-started/?language=python#add-your-connection-string-1
918c82526dto8f821515f58f821515f5tobfb809a0cf8af5332201toc994022f61c994022f61to7f9fed37cd