This commit is contained in:
Sakooooo 2025-01-07 19:29:27 +04:00
parent 6f0a7cb3d2
commit b2a9427363
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 5 additions and 5 deletions

View file

@ -36,11 +36,6 @@
}; };
nix.settings = { experimental-features = [ "nix-command" "flakes" ]; }; 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.useUserPackages = true;
home-manager.users.sako = { pkgs, ... }: { home-manager.users.sako = { pkgs, ... }: {

View file

@ -3,6 +3,11 @@ with lib;
let cfg = config.void.server.game.minecraft; let cfg = config.void.server.game.minecraft;
in { in {
imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; 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; }; options.void.server.game.minecraft = { enable = mkEnableOption false; };