diff --git a/flake.nix b/flake.nix index cc7a767..c60be9d 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,7 @@ nix.url = "github:nixos/nix"; nix-colors.url = "github:Misterio77/nix-colors"; nix-index-database.url = "github:Mic92/nix-index-database"; + nix-minecraft.url = "github:Infinidoge/nix-minecraft"; nixos-wsl.url = "github:nix-community/nixos-wsl"; nixpkgs-f2k.url = "github:fortuneteller2k/nixpkgs-f2k"; nixpkgs-fmt.url = "github:nix-community/nixpkgs-fmt"; diff --git a/hosts/default.nix b/hosts/default.nix index 9a993d4..0d089b3 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -15,6 +15,7 @@ stateVersion = "23.05"; modules = [ + inputs.nix-minecraft.nixosModules.minecraft-servers ./mistral/configuration.nix ]; }; diff --git a/hosts/mistral/configuration.nix b/hosts/mistral/configuration.nix index 54a2531..c71a349 100644 --- a/hosts/mistral/configuration.nix +++ b/hosts/mistral/configuration.nix @@ -1,9 +1,11 @@ -{ modulesPath, lib, pkgs, ... }: +{ inputs, modulesPath, lib, pkgs, ... }: { imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [ (modulesPath + "/virtualisation/digital-ocean-config.nix") ]; + nixpkgs.overlays = [ inputs.nix-minecraft.overlay ]; + environment.systemPackages = with pkgs; [ git vim ]; }