aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-04-13 12:37:41 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-04-13 12:44:13 +0200
commitd1527470d38cfbd439c4da83c73ef68b02e9de9a (patch)
tree7d131bf5985251f7e82f050e0feb6c23227bab05
parent90d0d66c5e4a0108b0a90f90d66a712b66527c27 (diff)
downloadNix-d1527470d38cfbd439c4da83c73ef68b02e9de9a.tar.gz
Nix-d1527470d38cfbd439c4da83c73ef68b02e9de9a.tar.zst
Nix-d1527470d38cfbd439c4da83c73ef68b02e9de9a.zip
Use new synapse host
-rw-r--r--Makefile1
-rw-r--r--deploy/flake.lock14
-rw-r--r--flake.lock6
-rw-r--r--flakes/flake.lock4
-rw-r--r--systems/eldiron/websites/immae/matrix/client4
-rw-r--r--systems/eldiron/websites/immae/matrix/server2
-rw-r--r--systems/eldiron/websites/immae/production.nix1
-rw-r--r--systems/eldiron/websites/tools/default.nix2
-rw-r--r--systems/zoldene/logging.nix21
9 files changed, 39 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index d9c1892..d4b4154 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,7 @@ ssh:
66ssh-zoldene-decrypt: 66ssh-zoldene-decrypt:
67 $(MAKE) ssh-decrypt TARGET=$(@:ssh-%-decrypt=%) 67 $(MAKE) ssh-decrypt TARGET=$(@:ssh-%-decrypt=%)
68ssh-decrypt: 68ssh-decrypt:
69 until ping -c1 $(TARGET); do :; done
69 ./scripts/with_env bash -c 'ssh -p 2222 -i $$SSH_IDENTITY_FILE root@$(TARGET) $(SSH_ARGS)' 70 ./scripts/with_env bash -c 'ssh -p 2222 -i $$SSH_IDENTITY_FILE root@$(TARGET) $(SSH_ARGS)'
70 71
71.PHONY: debug $(addprefix debug-,$(nodes)) 72.PHONY: debug $(addprefix debug-,$(nodes))
diff --git a/deploy/flake.lock b/deploy/flake.lock
index 03d18d6..c766b08 100644
--- a/deploy/flake.lock
+++ b/deploy/flake.lock
@@ -2783,7 +2783,7 @@
2783 }, 2783 },
2784 "locked": { 2784 "locked": {
2785 "lastModified": 1, 2785 "lastModified": 1,
2786 "narHash": "sha256-d0pFztjW1zKsfockL6q1bvRvkDN9A257733dxU3nhmQ=", 2786 "narHash": "sha256-N8FlN9eUGGmz7MevjaGC7Y07AEebJGRzcESmOW87/0Q=",
2787 "path": "../flakes", 2787 "path": "../flakes",
2788 "type": "path" 2788 "type": "path"
2789 }, 2789 },
@@ -3903,7 +3903,7 @@
3903 }, 3903 },
3904 "locked": { 3904 "locked": {
3905 "lastModified": 1, 3905 "lastModified": 1,
3906 "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=", 3906 "narHash": "sha256-OvT4dJGxdFBUgwjTu6FzejI/euWYXWsX1vD952B8934=",
3907 "path": "../systems/eldiron", 3907 "path": "../systems/eldiron",
3908 "type": "path" 3908 "type": "path"
3909 }, 3909 },
@@ -3974,7 +3974,7 @@
3974 }, 3974 },
3975 "locked": { 3975 "locked": {
3976 "lastModified": 1, 3976 "lastModified": 1,
3977 "narHash": "sha256-M3GhXYoHnWpmutLwY4HSpS9+6gNyLG/DWzErI5BKjNI=", 3977 "narHash": "sha256-Q+U6JxtY67jVPjuzfwrjSGmIM73kIRrjKm0ihbUxPGQ=",
3978 "path": "../systems/zoldene", 3978 "path": "../systems/zoldene",
3979 "type": "path" 3979 "type": "path"
3980 }, 3980 },
@@ -8888,11 +8888,11 @@
8888 "nixpkgs": "nixpkgs_106" 8888 "nixpkgs": "nixpkgs_106"
8889 }, 8889 },
8890 "locked": { 8890 "locked": {
8891 "lastModified": 1709824287, 8891 "lastModified": 1713004475,
8892 "narHash": "sha256-pco5zdRz/nN5v6olGD1vTl+ryq0KMK5cbaruisR/qUY=", 8892 "narHash": "sha256-zXj5DiaeAiLGIFcgMyQTtICXg4kgIiiYcTbnDIocY38=",
8893 "ref": "master", 8893 "ref": "master",
8894 "rev": "9b6bd6cf504abac4d8e794f38b8e2efbf015686f", 8894 "rev": "8fd3e35df106a494e3195708e8cba076f2c94acb",
8895 "revCount": 726, 8895 "revCount": 728,
8896 "type": "git", 8896 "type": "git",
8897 "url": "git+ssh://gitolite@git.immae.eu/perso/Immae/Config/Nix/Nixops/Secrets" 8897 "url": "git+ssh://gitolite@git.immae.eu/perso/Immae/Config/Nix/Nixops/Secrets"
8898 }, 8898 },
diff --git a/flake.lock b/flake.lock
index 11828ec..f22d393 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2664,7 +2664,7 @@
2664 }, 2664 },
2665 "locked": { 2665 "locked": {
2666 "lastModified": 1, 2666 "lastModified": 1,
2667 "narHash": "sha256-d0pFztjW1zKsfockL6q1bvRvkDN9A257733dxU3nhmQ=", 2667 "narHash": "sha256-N8FlN9eUGGmz7MevjaGC7Y07AEebJGRzcESmOW87/0Q=",
2668 "path": "./flakes", 2668 "path": "./flakes",
2669 "type": "path" 2669 "type": "path"
2670 }, 2670 },
@@ -3919,7 +3919,7 @@
3919 }, 3919 },
3920 "locked": { 3920 "locked": {
3921 "lastModified": 1, 3921 "lastModified": 1,
3922 "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=", 3922 "narHash": "sha256-OvT4dJGxdFBUgwjTu6FzejI/euWYXWsX1vD952B8934=",
3923 "path": "../systems/eldiron", 3923 "path": "../systems/eldiron",
3924 "type": "path" 3924 "type": "path"
3925 }, 3925 },
@@ -3990,7 +3990,7 @@
3990 }, 3990 },
3991 "locked": { 3991 "locked": {
3992 "lastModified": 1, 3992 "lastModified": 1,
3993 "narHash": "sha256-M3GhXYoHnWpmutLwY4HSpS9+6gNyLG/DWzErI5BKjNI=", 3993 "narHash": "sha256-Q+U6JxtY67jVPjuzfwrjSGmIM73kIRrjKm0ihbUxPGQ=",
3994 "path": "../systems/zoldene", 3994 "path": "../systems/zoldene",
3995 "type": "path" 3995 "type": "path"
3996 }, 3996 },
diff --git a/flakes/flake.lock b/flakes/flake.lock
index 2453924..17264a4 100644
--- a/flakes/flake.lock
+++ b/flakes/flake.lock
@@ -3824,7 +3824,7 @@
3824 }, 3824 },
3825 "locked": { 3825 "locked": {
3826 "lastModified": 1, 3826 "lastModified": 1,
3827 "narHash": "sha256-Fm13ywWMQlFSAxCWxI+lexO1IetZ1NPrqmBssLMLHpA=", 3827 "narHash": "sha256-OvT4dJGxdFBUgwjTu6FzejI/euWYXWsX1vD952B8934=",
3828 "path": "../systems/eldiron", 3828 "path": "../systems/eldiron",
3829 "type": "path" 3829 "type": "path"
3830 }, 3830 },
@@ -3895,7 +3895,7 @@
3895 }, 3895 },
3896 "locked": { 3896 "locked": {
3897 "lastModified": 1, 3897 "lastModified": 1,
3898 "narHash": "sha256-M3GhXYoHnWpmutLwY4HSpS9+6gNyLG/DWzErI5BKjNI=", 3898 "narHash": "sha256-Q+U6JxtY67jVPjuzfwrjSGmIM73kIRrjKm0ihbUxPGQ=",
3899 "path": "../systems/zoldene", 3899 "path": "../systems/zoldene",
3900 "type": "path" 3900 "type": "path"
3901 }, 3901 },
diff --git a/systems/eldiron/websites/immae/matrix/client b/systems/eldiron/websites/immae/matrix/client
index 89136a0..8bb3d2f 100644
--- a/systems/eldiron/websites/immae/matrix/client
+++ b/systems/eldiron/websites/immae/matrix/client
@@ -1,11 +1,11 @@
1{ 1{
2 "m.homeserver": { 2 "m.homeserver": {
3 "base_url": "https://immae.ems.host" 3 "base_url": "https://synapse.immae.eu"
4 }, 4 },
5 "m.identity_server": { 5 "m.identity_server": {
6 "base_url": "https://vector.im" 6 "base_url": "https://vector.im"
7 }, 7 },
8 "org.matrix.msc3575.proxy": { 8 "org.matrix.msc3575.proxy": {
9 "url": "https://immae.ems.host" 9 "url": "https://synapse.immae.eu"
10 } 10 }
11} 11}
diff --git a/systems/eldiron/websites/immae/matrix/server b/systems/eldiron/websites/immae/matrix/server
index 449155a..8314aa1 100644
--- a/systems/eldiron/websites/immae/matrix/server
+++ b/systems/eldiron/websites/immae/matrix/server
@@ -1,3 +1,3 @@
1{ 1{
2 "m.server": "immae.ems.host:443" 2 "m.server": "synapse.immae.eu:443"
3} 3}
diff --git a/systems/eldiron/websites/immae/production.nix b/systems/eldiron/websites/immae/production.nix
index 2ed4a7d..9e8cc5d 100644
--- a/systems/eldiron/websites/immae/production.nix
+++ b/systems/eldiron/websites/immae/production.nix
@@ -56,6 +56,7 @@ in {
56 AllowOverride None 56 AllowOverride None
57 Require all granted 57 Require all granted
58 Header always set Access-Control-Allow-Origin "*" 58 Header always set Access-Control-Allow-Origin "*"
59 Header always set Cache-Control "max-age=3600, public"
59 </Directory> 60 </Directory>
60 61
61 Alias /patches ${patchesDir} 62 Alias /patches ${patchesDir}
diff --git a/systems/eldiron/websites/tools/default.nix b/systems/eldiron/websites/tools/default.nix
index b396d44..b591190 100644
--- a/systems/eldiron/websites/tools/default.nix
+++ b/systems/eldiron/websites/tools/default.nix
@@ -79,7 +79,7 @@ let
79 matrix = pkgs.element-web.override { 79 matrix = pkgs.element-web.override {
80 conf = { 80 conf = {
81 default_server_config."m.homeserver" = { 81 default_server_config."m.homeserver" = {
82 base_url = "https://immae.ems.host"; 82 base_url = "https://synapse.immae.eu";
83 server_name = "immae.eu"; 83 server_name = "immae.eu";
84 }; 84 };
85 default_server_config."m.identity_server" = { 85 default_server_config."m.identity_server" = {
diff --git a/systems/zoldene/logging.nix b/systems/zoldene/logging.nix
index a0f8c9d..2b6e331 100644
--- a/systems/zoldene/logging.nix
+++ b/systems/zoldene/logging.nix
@@ -54,6 +54,12 @@ in
54 mode = "0755"; 54 mode = "0755";
55 } 55 }
56 { 56 {
57 directory = "/var/lib/postgresql/${psqlVersion}";
58 user = config.users.users.postgres.name;
59 group = config.users.users.postgres.group;
60 mode = "0755";
61 }
62 {
57 directory = "/var/lib/fluentbit"; 63 directory = "/var/lib/fluentbit";
58 user = config.users.users.fluentbit.name; 64 user = config.users.users.fluentbit.name;
59 group = config.users.users.fluentbit.group; 65 group = config.users.users.fluentbit.group;
@@ -110,6 +116,21 @@ in
110 ]; 116 ];
111 }; 117 };
112 }; 118 };
119 systemd.services.postgresql.after = [
120 "var-lib-postgresql.mount"
121 "var-lib-postgresql-16.mount"
122 "persist-zfast-var-lib-postgresql.mount"
123 "persist-zfast-var-lib-postgresql-16.mount"
124 ];
125 systemd.services.postgresql.unitConfig = {
126 BindsTo = [
127 "var-lib-postgresql.mount"
128 "var-lib-postgresql-16.mount"
129 "persist-zfast-var-lib-postgresql.mount"
130 "persist-zfast-var-lib-postgresql-16.mount"
131 ];
132 };
133
113 services.postgresql = { 134 services.postgresql = {
114 enable = true; 135 enable = true;
115 package = pkgs.postgresql_16; 136 package = pkgs.postgresql_16;