mirror of
https://github.com/nmasur/dotfiles
synced 2026-10-24 05:59:53 +00:00
feat(services): add valheim server module and preset
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user