this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

modules/minecraft-server: add bluemap

+27 -2
+18
modules/nixos/minecraft-server.nix
··· 31 31 domain = null; 32 32 }; 33 33 terra.enable = mkEnableOption "Terra"; 34 + bluemap = mkServiceOption "BlueMap" { 35 + port = 9101; 36 + }; 34 37 }; 35 38 }; 36 39 }; ··· 38 41 imports = [ inputs.nix-minecraft.nixosModules.minecraft-servers ]; 39 42 40 43 config = mkIf cfg.enable { 44 + services.nginx = mkIf cfg.bluemap.enable { 45 + virtualHosts.${cfg.bluemap.domain} = { 46 + locations."/" = { 47 + proxyPass = "http://${toString cfg.bluemap.host}:${toString cfg.bluemap.port}"; 48 + recommendedProxySettings = true; 49 + }; 50 + }; 51 + }; 52 + 41 53 services.minecraft-servers = { 42 54 enable = true; 43 55 eula = true; ··· 73 85 pkgs.fetchurl { 74 86 url = "https://cdn.modrinth.com/data/FIlZB9L0/versions/Ufl71nST/Terra-bukkit-6.6.6-BETA+451683aff-shaded.jar"; 75 87 sha256 = "05gi1bgmq5plqx141sagbfrx6jqmjlc9l6b3y6hx6csl4xm5v693"; 88 + } 89 + )) 90 + (optional cfg.bluemap.enable ( 91 + pkgs.fetchurl { 92 + url = "https://cdn.modrinth.com/data/swbUV1cr/versions/LIP9FOJo/bluemap-5.12-paper.jar"; 93 + sha256 = "18nhxwfa2f0q0gmj0gmg7c7isy3pcrlzjy0w1cmhd2mhfcnmzab3"; 76 94 } 77 95 )) 78 96 ]);
+4
systems/tardigrade/default.nix
··· 16 16 minecraft-server = { 17 17 enable = true; 18 18 unifiedmetrics.enable = true; 19 + bluemap = { 20 + enable = true; 21 + domain = "mc.${config.networking.domain}"; 22 + }; 19 23 }; 20 24 21 25 nginx.enable = true;
+5 -2
users/rushilu.nix
··· 3 3 inherit (lib) 4 4 mkIf 5 5 elem 6 - optional 7 6 hasAttr 7 + filter 8 8 ; 9 9 in 10 10 { ··· 15 15 extraGroups = [ 16 16 "wheel" 17 17 ] 18 - ++ optional (hasAttr "networkmanager" config.users.groups) "networkmanager"; 18 + ++ filter (group: hasAttr group config.users.groups) [ 19 + "networkmanager" 20 + "minecraft" 21 + ]; 19 22 gender = { 20 23 description = "N/A"; 21 24 pronouns = "they/them";