Skyler Grey | ef05aa8 | 2023-03-12 00:34:17 +0000 | [diff] [blame] | 1 | { pkgs, nixpkgs-unfree, system, username, lib, ... }: { |
Skyler Grey | af6ad43 | 2022-10-30 23:08:30 +0000 | [diff] [blame] | 2 | config = { |
| 3 | services.mongodb = { |
Skyler Grey | 32e3105 | 2023-04-06 18:04:26 +0000 | [diff] [blame] | 4 | package = pkgs.legacyPackages.${system}.mongodb-6_0; |
| 5 | enable = false; |
Skyler Grey | a9addb3 | 2022-10-31 00:22:55 +0000 | [diff] [blame] | 6 | dbpath = "/tmp/mongodb"; |
Skyler Grey | af6ad43 | 2022-10-30 23:08:30 +0000 | [diff] [blame] | 7 | }; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 8 | internal.allowUnfree = [ "mongodb" "mongodb-compass" ]; |
Skyler Grey | c7ab4a4 | 2023-02-26 12:43:10 +0000 | [diff] [blame] | 9 | systemd.services.mongod.wantedBy = lib.mkForce []; |
Skyler Grey | ef05aa8 | 2023-03-12 00:34:17 +0000 | [diff] [blame] | 10 | environment.persistence."/nix/persist".users.${username}.directories = [ |
| 11 | ".config/MongoDB\ Compass/Connections/" |
| 12 | ]; |
Skyler Grey | af6ad43 | 2022-10-30 23:08:30 +0000 | [diff] [blame] | 13 | }; |
| 14 | |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 15 | home.home.packages = [ pkgs.mongodb-compass ]; |
Skyler Grey | af6ad43 | 2022-10-30 23:08:30 +0000 | [diff] [blame] | 16 | } |