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" + ]; + }; + }; +}