From b2a94273635086059ca7d2a9361ef23432e35402 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 7 Jan 2025 19:29:27 +0400 Subject: [PATCH] aaa --- hosts/sakoserver/configuration.nix | 5 ----- modules/server/game/minecraft/default.nix | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) 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; };