actual idiot award
This commit is contained in:
parent
61241c8a15
commit
4cfb06fabb
|
@ -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; };
|
||||||
|
|
Loading…
Reference in a new issue