Compare commits

...

3 commits

Author SHA1 Message Date
root
5ba24ad7c3 hack: restart dovecot from time to time 2024-08-30 22:04:56 +02:00
root
8218423cfd try out convos.chat at convos.isomorphis.me (didn't work) 2024-08-30 22:04:56 +02:00
root
7a25abcddd i lix 2024-08-30 22:04:56 +02:00
6 changed files with 40 additions and 6 deletions

View file

@ -21,6 +21,9 @@
# Activate nix flakes. # Activate nix flakes.
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Use Lix
nix.package = pkgs.lix;
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";

View file

@ -42,11 +42,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1719838683, "lastModified": 1720553833,
"narHash": "sha256-Zw9rQjHz1ilNIimEXFeVa1ERNRBF8DoXDhLAZq5B4pE=", "narHash": "sha256-IXMiHQMtdShDXcBW95ctA+m5Oq2kLxnBt7WlMxvDQXA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d032c1a6dfad4eedec7e35e91986becc699d7d69", "rev": "249fbde2a178a2ea2638b65b9ecebd531b338cf9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -58,11 +58,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1719826879, "lastModified": 1720657034,
"narHash": "sha256-xs7PlULe8O1SAcs/9e/HOjeUjBrU5FNtkAF/bSEcFto=", "narHash": "sha256-nPhbeFdyN8yn+EXmnPcBWisoypndtQbNIhSKmAinv3E=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b9014df496d5b68bf7c0145d0e9b0f529ce4f2a8", "rev": "212defe037698e18fc9521dfe451779a8979844c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -21,6 +21,7 @@ in
./imap.nix ./imap.nix
./web-misc.nix ./web-misc.nix
./miniflux.nix ./miniflux.nix
./convos.nix
]; ];
nixpkgs.overlays = [ nixpkgs.overlays = [

21
pastila/convos.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
{
# services.convos = {
# enable = true;
# reverseProxy = true;
# };
# services.nginx.virtualHosts."convos.isomorphis.me" = {
# enableACME = true;
# forceSSL = true;
# locations."/" = {
# proxyPass = "http://localhost:3000";
# proxyWebsockets = true;
# };
# extraConfig = ''
# client_max_body_size 0;
# proxy_set_header X-Request-Base "$scheme://$host/";
# '';
# };
}

View file

@ -37,4 +37,12 @@
]; ];
group = config.services.dovecot2.group; group = config.services.dovecot2.group;
}; };
# XXX *shrug*
services.cron = {
enable = true;
systemCronJobs = [
"0 2 * * * root systemctl restart dovecot2.service"
];
};
} }

View file

@ -25,6 +25,7 @@
{ num = 51413; proto = "udp"; } { num = 51413; proto = "udp"; }
# mosh # mosh
# see ad-hoc config in oven/configuration.nix # see ad-hoc config in oven/configuration.nix
# (60000:61000)
# Headscale RPC # Headscale RPC
{ num = 50443; proto = "tcp"; } { num = 50443; proto = "tcp"; }
# SMTP # SMTP