hainich: add webmail (alps)
This commit is contained in:
parent
1f37a64e74
commit
ad2adbd0d1
3 changed files with 31 additions and 0 deletions
|
@ -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
25
pkgs/alps/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue