diff --git a/hosts/sakoserver/configuration.nix b/hosts/sakoserver/configuration.nix index b42cd270..6390aa85 100644 --- a/hosts/sakoserver/configuration.nix +++ b/hosts/sakoserver/configuration.nix @@ -36,11 +36,6 @@ }; 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 7be734a7..c9343a8d 100644 --- a/modules/server/game/minecraft/default.nix +++ b/modules/server/game/minecraft/default.nix @@ -3,6 +3,11 @@ 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; };