diff --git a/hosts/sigma/default.nix b/hosts/sigma/default.nix index d60d066..158921f 100644 --- a/hosts/sigma/default.nix +++ b/hosts/sigma/default.nix @@ -11,6 +11,7 @@ ./hardware.nix ./jellyfin.nix ./mail.nix + ./memos.nix ./network.nix ./sonarr.nix ]; diff --git a/hosts/sigma/memos.nix b/hosts/sigma/memos.nix new file mode 100644 index 0000000..e36f504 --- /dev/null +++ b/hosts/sigma/memos.nix @@ -0,0 +1,20 @@ +{...}: { + virtualisation.oci-containers.containers = { + memos = { + # https://www.usememos.com/docs/install/self-hosting + image = "docker.io/neosmemo/memos:stable"; + environment = { + # https://github.com/usememos/memos/issues/2433#issuecomment-1797316081 + MEMOS_METRIC = "false"; + }; + ports = [ + # TODO: for some *very* weird reason, exposing the port does not work + # if we use the same port on the host and inside the container. Why?? + "127.0.0.1:5231:5230" + ]; + volumes = [ + "memos:/var/opt/memos" + ]; + }; + }; +}