Add back mongo (v4.2)
diff --git a/flake.lock b/flake.lock
index 741c672..8c315aa 100644
--- a/flake.lock
+++ b/flake.lock
@@ -96,22 +96,6 @@
"type": "github"
}
},
- "nixpkgs-mongodb-fix": {
- "locked": {
- "lastModified": 1656040086,
- "narHash": "sha256-4otcCIQOB1IeBKgRziPo3UQDNcRomU4UsShHAzCdwNQ=",
- "owner": "Et7f3",
- "repo": "nixpkgs",
- "rev": "d78bbbe41ab7bfa5c1b8770713fd93164a74dd78",
- "type": "github"
- },
- "original": {
- "owner": "Et7f3",
- "ref": "fix-mongodb",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
"nixpkgs-unstable": {
"locked": {
"lastModified": 1658290795,
@@ -164,7 +148,6 @@
"comma": "comma",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_2",
- "nixpkgs-mongodb-fix": "nixpkgs-mongodb-fix",
"nixpkgs-unstable": "nixpkgs-unstable",
"nurpkgs": "nurpkgs"
}
diff --git a/flake.nix b/flake.nix
index a87d049..5836101 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,7 +4,6 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
- nixpkgs-mongodb-fix.url = "github:Et7f3/nixpkgs/fix-mongodb";
home-manager.url = "github:nix-community/home-manager/release-22.05";
nurpkgs.url = "github:nix-community/NUR";
comma.url = "github:nix-community/comma";
diff --git a/src/apps/system/mongo.nix b/src/apps/system/mongo.nix
index c838be7..abd947d 100644
--- a/src/apps/system/mongo.nix
+++ b/src/apps/system/mongo.nix
@@ -1,7 +1,7 @@
-{ nixpkgs-mongodb-fix, system, ... }: {
+{ system, pkgs-unstable, ... }: {
services.mongodb = {
- package = (import nixpkgs-mongodb-fix { inherit system; config = { allowUnfree = true; }; }).mongodb-4_4;
- enable = false;
+ package = pkgs-unstable.mongodb-4_2;
+ enable = true;
dbpath = "/tmp/mongodb";
};
}