actual idiot award

This commit is contained in:
Sakooooo 2025-01-07 19:21:41 +04:00
parent 61241c8a15
commit 4cfb06fabb
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -3,15 +3,15 @@ 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 ];
options.void.server.game.minecraft = { enable = mkEnableOption false; };
config = mkIf cfg.enable {
nixpkgs = { nixpkgs = {
overlays = [ inputs.nix-minecraft.overlay ]; overlays = [ inputs.nix-minecraft.overlay ];
config.allowUnfreePredicate = pkg: config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkgs) [ "minecraft-server" ]; builtins.elem (lib.getName pkgs) [ "minecraft-server" ];
}; };
options.void.server.game.minecraft = { enable = mkEnableOption false; };
config = mkIf cfg.enable {
# services = { # services = {
services.minecraft-servers.servers.wires = services.minecraft-servers.servers.wires =
let modpack = pkgs.fetchPackwizModpack { url = ./sakopack; }; let modpack = pkgs.fetchPackwizModpack { url = ./sakopack; };