summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-01-25 13:27:54 -0600
committerMarc Coquand <marc@mccd.space>2024-01-25 13:27:54 -0600
commit4511247e002b5a1c05a401803846e2d50069c459 (patch)
tree8208ea405b63f229d51366a027d7745a0ed24bef
parente494baf4c5f4b5043f6c47a136e0ad685c81144b (diff)
downloadnixos-4511247e002b5a1c05a401803846e2d50069c459.tar.gz
nixos-4511247e002b5a1c05a401803846e2d50069c459.tar.bz2
nixos-4511247e002b5a1c05a401803846e2d50069c459.zip
Add rabbitmq for Ann
Diffstat (limited to '')
-rw-r--r--configuration.nix19
1 files changed, 18 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix
index fe96a43..39e1874 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -11,6 +11,10 @@ in {
networking.nat.internalInterfaces = [ "ve-*" ];
networking.nat.externalInterface = "eth0";
+ systemd.tmpfiles.rules = [
+ "d /mnt/ 700 root root -"
+ ];
+
containers.ann = {
autoStart = true;
hostAddress = "192.168.100.2";
@@ -24,10 +28,17 @@ in {
hostPath = "/mnt/ann/";
isReadOnly = false;
};
+ "/srv/ann-queue" = {
+ hostPath = "/mnt/ann-queue/";
+ isReadOnly = false;
+ };
};
config = { config, pkgs, ... }: {
- systemd.tmpfiles.rules = [ "d /srv/ann 700 ann ann -" ];
+ systemd.tmpfiles.rules = [
+ "d /srv/ann 700 ann ann -"
+ "d /srv/ann-queue 700 guest guest -"
+ ];
users.users.ann = {
isSystemUser = true;
home = "/srv/ann";
@@ -35,6 +46,12 @@ in {
extraGroups = [ "wheel" ];
};
users.groups.ann = {};
+
+ services.rabbitmq = {
+ enable = "true";
+ listenAdress = "127.0.0.1";
+ };
+
systemd.services.ann = {