diff --git a/debug.nix b/debug.nix new file mode 100644 index 0000000..f17441d --- /dev/null +++ b/debug.nix @@ -0,0 +1,16 @@ +{ ... }: +{ + imports = [ + {lib, config, ... }: { + options.tempDebugVar = lib.mkOption { + type = lib.types.str; + default = ""; + description = "tempDebugVar"; + }; + } + ]; + + environment.etc."debugfile".text = '' + ${config.tempDebugVar} + ''; +} diff --git a/hostHelper.nix b/hostHelper.nix index 3602016..13e7f33 100644 --- a/hostHelper.nix +++ b/hostHelper.nix @@ -8,6 +8,7 @@ in specialArgs = {inherit inArgs;}; modules = [ ./hosts/${hostname} + #./debug.nix { networking.hostName = hostname; diff --git a/modules/game/server/luanti/default.nix b/modules/game/server/luanti/default.nix index 65a595a..2ec6fbe 100644 --- a/modules/game/server/luanti/default.nix +++ b/modules/game/server/luanti/default.nix @@ -1,6 +1,7 @@ { imports = [ ./luanti.nix + #./mods.nix ./postgresql.nix ]; } diff --git a/modules/game/server/luanti/mods.nix b/modules/game/server/luanti/mods.nix new file mode 100644 index 0000000..22c4748 --- /dev/null +++ b/modules/game/server/luanti/mods.nix @@ -0,0 +1,11 @@ +{ pkgs, config, ... }: let + GitMod = curl: pkgs.fetchgit rec { + url = curl; + fetchSubmodules = true; + deepClone = false; + leaveDotGit = false; + }; + this-variable-should-exist = GitMod "https://gitlab.com/rubenwardy/accountmgr"; +in { + config.tempDebugVar = break this-variable-should-exist; +}