blob: ddbaf5faf1a96389d7e3afeebbb4b2c7988c492a [file] [log] [blame]
Skyler Grey1e2187f2023-03-03 22:45:10 +00001{
2 description = "A very basic flake";
3
4 outputs = { self, nixpkgs }: {
5
6 packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
7
Skyler Grey4f3e6062023-03-04 01:29:29 +00008 packages.x86_64-linux.nixosConfigurations.nixos =
9 let
Skyler Grey1e2187f2023-03-03 22:45:10 +000010 pkgs = nixpkgs.legacyPackages.x86_64-linux;
Skyler Grey4f3e6062023-03-04 01:29:29 +000011 in
12 nixpkgs.lib.nixosSystem {
Skyler Grey1e2187f2023-03-03 22:45:10 +000013 system = "x86_64-linux";
14 modules = [
Skyler Grey4f3e6062023-03-04 01:29:29 +000015 {
16 nixpkgs.config.allowUnfree = true;
17 services.mongodb.enable = true;
18 services.mongodb.package = pkgs.mongodb-6_0;
19 }
20 ./configuration.nix
Skyler Grey1e2187f2023-03-03 22:45:10 +000021 ];
Skyler Grey4f3e6062023-03-04 01:29:29 +000022 };
Skyler Grey1e2187f2023-03-03 22:45:10 +000023
24 };
25}