Skip to content

Commit

Permalink
hosts/mistral: minecraft server initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Nov 17, 2023
1 parent a2b6621 commit 9f08c1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
stateVersion = "23.05";

modules = [
inputs.nix-minecraft.nixosModules.minecraft-servers
./mistral/configuration.nix
];
};
Expand Down
4 changes: 3 additions & 1 deletion hosts/mistral/configuration.nix
Original file line number Diff line number Diff line change
@@ -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 ];
}

0 comments on commit 9f08c1c

Please sign in to comment.