feat(services): add valheim server module and preset

This commit is contained in:
Noah Masur
2026-10-23 18:21:52 +00:00
parent 744afbb2d8
commit c757493b35
10 changed files with 507 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
_inputs: final: prev:
{
fetchValheimThunderstoreMod =
{
owner,
name,
version,
hash,
}:
let
depString = "${owner}-${name}";
in
prev.fetchzip {
inherit version hash;
name = "valheim-thunderstore-${depString}";
url = "https://thunderstore.io/package/download/${owner}/${name}/${version}/";
extension = "zip";
stripRoot = false;
};
}
// prev.lib.optionalAttrs (prev.stdenv.hostPlatform.isLinux && prev.stdenv.hostPlatform.isx86_64) {
valheim-server = final.nmasur.valheim-server;
valheim-server-unwrapped = final.nmasur.valheim-server.unwrapped;
}