diff --git a/hosts/sakoserver/configuration.nix b/hosts/sakoserver/configuration.nix index 6390aa85..b42cd270 100644 --- a/hosts/sakoserver/configuration.nix +++ b/hosts/sakoserver/configuration.nix @@ -36,6 +36,11 @@ }; nix.settings = { experimental-features = [ "nix-command" "flakes" ]; }; + nixpkgs = { + overlays = [ inputs.nix-minecraft.overlay ]; + config.allowUnfreePredicate = pkg: + builtins.elem (lib.getName pkgs) [ "minecraft-server" ]; + }; home-manager.useUserPackages = true; home-manager.users.sako = { pkgs, ... }: { diff --git a/modules/server/game/minecraft/default.nix b/modules/server/game/minecraft/default.nix index 5bcaa91b..8c878f0a 100644 --- a/modules/server/game/minecraft/default.nix +++ b/modules/server/game/minecraft/default.nix @@ -3,11 +3,6 @@ with lib; let cfg = config.void.server.game.minecraft; in { imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; - nixpkgs = { - overlays = [ inputs.nix-minecraft.overlay ]; - config.allowUnfreePredicate = pkg: - builtins.elem (lib.getName pkgs) [ "minecraft-server" ]; - }; options.void.server.game.minecraft = { enable = mkEnableOption false; };