From a77137731d07e6e08cb1e7e8cb8ba3cc922a4404 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Wed, 17 Jul 2024 03:19:53 +0200 Subject: [PATCH] feat: adds liv.town --- modules/services/liv-town.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 modules/services/liv-town.nix diff --git a/modules/services/liv-town.nix b/modules/services/liv-town.nix new file mode 100644 index 0000000..d309fd1 --- /dev/null +++ b/modules/services/liv-town.nix @@ -0,0 +1,22 @@ +{ ... }: +{ + virtualisation.docker = { + enable = true; + autoPrune.enable = true; + # enableNvidia = true; + }; + + user.users.liv = { + extraGroups = [ "docker" ]; + }; + + virtualisation.oci-containers = { + backend = "docker"; + containers."livdottown" = { + image = "ghcr.io/ahwxorg/liv.town:latest"; + ports = [ + "4321:4321/tcp" + ]; + }; + }; +}