summary refs log tree commit diff
path: root/host/Rory-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'host/Rory-desktop')
-rw-r--r--host/Rory-desktop/configuration.nix1
-rw-r--r--host/Rory-desktop/edu/mongodb.nix20
2 files changed, 21 insertions, 0 deletions
diff --git a/host/Rory-desktop/configuration.nix b/host/Rory-desktop/configuration.nix

index d93b66d..e16cb7e 100644 --- a/host/Rory-desktop/configuration.nix +++ b/host/Rory-desktop/configuration.nix
@@ -26,6 +26,7 @@ args@{ #./optional/gui/x11.nix ./optional/gui/wayland.nix + ./edu/mongodb.nix # ./printing.nix # ./ollama.nix diff --git a/host/Rory-desktop/edu/mongodb.nix b/host/Rory-desktop/edu/mongodb.nix new file mode 100644
index 0000000..92ffc6a --- /dev/null +++ b/host/Rory-desktop/edu/mongodb.nix
@@ -0,0 +1,20 @@ +{ + config, + pkgs, + lib, + ... +}: + +{ + services.mongodb = { + enable = true; + package = pkgs.mongodb-ce; + enableAuth = true; + initialRootPasswordFile = "/etc/mongo-pass"; + #bind_ip = "/run/mongodb.sock"; + extraConfig = '' + net.unixDomainSocket.filePermissions: 0777 + ''; + }; + +}