hainich: add webmail (alps)

keep-around/ad2adbd0d1cc466e385e55ae1ce2e5b969774b5e
hexchen 2020-12-05 18:56:49 +00:00
parent 1f37a64e74
commit ad2adbd0d1
3 changed files with 31 additions and 0 deletions

View File

@ -177,4 +177,9 @@ contact@hacc.space info@hacc.space'';
'';
};
systemd.services.alps = {
enable = true;
script = "${pkgs.alps}/bin/alps -theme sourcehut imaps://mail.hacc.space:993 smtps://mail.hacc.space:465";
unitConfig.WorkingDirectory = "${pkgs.alps}/share/alps";
};
}

25
pkgs/alps/default.nix Normal file
View File

@ -0,0 +1,25 @@
{ lib, buildGoModule }:
buildGoModule rec {
pname = "alps";
version = "0.0.1";
src = fetchGit {
url = "https://git.sr.ht/~migadu/alps";
rev = "5cef0aaff2b8b6ee3e00b566123517e241d8cfb8";
};
vendorSha256 = "0hdfh6zdrjq97yj60dfsncl02cp8rpx4d4cqhk3zj0bhmpmrzddi";
subPackages = [ "cmd/alps" ];
postInstall = ''
mkdir -p $out/share/alps
cp -r $src/themes $out/share/alps/
'';
meta = with lib; {
description = "A simple and extensible webmail.";
homepage = "https://git.sr.ht/~migadu/alps";
};
}

View File

@ -18,6 +18,7 @@ let
# package = callPackage ./package {};
wasi = import wasiSrc { inherit wasiSrc; pkgs = pkgs // newpkgs; };
peertube = callPackage ./peertube { mylibs = import "${immaeNix}/lib" { inherit pkgs; }; };
alps = callPackage ./alps {};
};
in newpkgs