feat: add nix packaging and nixos module #46

Merged
c merged 20 commits from nixos-flake into master 2026-04-20 06:27:28 +03:00
Owner

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.

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.
c added 1 commit 2026-04-19 17:45:41 +03:00
c added 1 commit 2026-04-19 18:02:07 +03:00
c added 1 commit 2026-04-19 18:03:56 +03:00
c force-pushed nixos-flake from 32bcb02c96 to d003598046 2026-04-19 18:09:51 +03:00 Compare
c force-pushed nixos-flake from d003598046 to f78b91fe47 2026-04-19 18:12:04 +03:00 Compare
c force-pushed nixos-flake from f78b91fe47 to 2211179a18 2026-04-19 18:13:06 +03:00 Compare
c force-pushed nixos-flake from 2211179a18 to f01bd046ce 2026-04-19 18:25:44 +03:00 Compare
c force-pushed nixos-flake from f01bd046ce to dea44a2f48 2026-04-19 18:47:08 +03:00 Compare
c added 1 commit 2026-04-19 18:49:25 +03:00
c added 1 commit 2026-04-19 18:53:22 +03:00
c added 1 commit 2026-04-19 18:59:51 +03:00
c force-pushed nixos-flake from 49eff76083 to 2e3a3a2306 2026-04-19 19:01:13 +03:00 Compare
c force-pushed nixos-flake from 2e3a3a2306 to 6cbb2278aa 2026-04-19 19:02:14 +03:00 Compare
c added 1 commit 2026-04-19 19:04:47 +03:00
c added 1 commit 2026-04-19 19:06:24 +03:00
c added 1 commit 2026-04-19 19:17:06 +03:00
c added 1 commit 2026-04-19 19:37:43 +03:00
c added 1 commit 2026-04-19 19:42:10 +03:00
c added 1 commit 2026-04-19 19:46:50 +03:00
c force-pushed nixos-flake from ef3b36e40c to 6bd15959c3 2026-04-19 19:50:59 +03:00 Compare
c added 1 commit 2026-04-19 19:57:52 +03:00
c force-pushed nixos-flake from 5b063d4d4e to 854d212368 2026-04-19 20:00:11 +03:00 Compare
c added 1 commit 2026-04-19 20:30:01 +03:00
c added 2 commits 2026-04-19 21:09:01 +03:00
c added 1 commit 2026-04-19 21:21:18 +03:00
nix/module.nix Outdated
@ -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";
Collaborator

I think add /?directConnection=true at the end since that's what MongoDB documentation recommends
https://www.mongodb.com/docs/get-started/?language=python#add-your-connection-string-1

I think add `/?directConnection=true` at the end since that's what MongoDB documentation recommends https://www.mongodb.com/docs/get-started/?language=python#add-your-connection-string-1
c marked this conversation as resolved
c added 1 commit 2026-04-19 21:29:08 +03:00
c force-pushed nixos-flake from 918c82526d to 8f821515f5 2026-04-19 21:34:09 +03:00 Compare
c force-pushed nixos-flake from 8f821515f5 to bfb809a0cf 2026-04-19 21:44:28 +03:00 Compare
c added 1 commit 2026-04-19 22:11:32 +03:00
c added 1 commit 2026-04-19 22:30:30 +03:00
c force-pushed nixos-flake from 8af5332201 to c994022f61 2026-04-19 22:45:55 +03:00 Compare
c force-pushed nixos-flake from c994022f61 to 7f9fed37cd 2026-04-19 23:12:49 +03:00 Compare
c added 1 commit 2026-04-19 23:16:22 +03:00
c added 1 commit 2026-04-19 23:25:45 +03:00
c added 1 commit 2026-04-20 06:26:45 +03:00
c merged commit 4004301e41 into master 2026-04-20 06:27:28 +03:00
c deleted branch nixos-flake 2026-04-20 06:27:28 +03:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
c/takina!46
No description provided.