mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-22 11:41:26 +00:00
Merge pull request 'Remove alps from server configurtaion' (#18) from remove-alps into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config/pulls/18
This commit is contained in:
commit
dbb6757d77
|
@ -11,7 +11,6 @@ in
|
||||||
./files.nix
|
./files.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
./mailserver/system/mailserver.nix
|
./mailserver/system/mailserver.nix
|
||||||
./mailserver/system/alps.nix
|
|
||||||
./vpn/ocserv.nix
|
./vpn/ocserv.nix
|
||||||
./api/api.nix
|
./api/api.nix
|
||||||
./api/api-module.nix
|
./api/api-module.nix
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
{ lib, fetchgit, buildGoModule, ... }:
|
|
||||||
buildGoModule rec {
|
|
||||||
pname = "alps";
|
|
||||||
version = "v1.0.0"; # latest available tag at the moment
|
|
||||||
|
|
||||||
src = fetchGit {
|
|
||||||
url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-alps";
|
|
||||||
rev = "dc2109ca2fdabfbda5d924faa4947f5694d5d758";
|
|
||||||
};
|
|
||||||
|
|
||||||
vendorSha256 = "0bqg0qjam4mvh07wfil6l5spz32mk5a7kfxxnwfyva805pzmn6dk";
|
|
||||||
|
|
||||||
deleteVendor = false;
|
|
||||||
runVend = true;
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
go build ./cmd/alps
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp -r * $out/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Webmail application for the dovecot/postfix mailserver";
|
|
||||||
homepage = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-alps";
|
|
||||||
license = licenses.mit;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
{ pkgs, config, lib, fetchgit, buildGoModule, ... }:
|
|
||||||
let domain = config.services.userdata.domain;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
nixpkgs.overlays =
|
|
||||||
[ (self: super: { alps = self.callPackage ./alps-package.nix { }; }) ];
|
|
||||||
|
|
||||||
systemd.services = {
|
|
||||||
alps = {
|
|
||||||
path = [ pkgs.alps pkgs.coreutils ];
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart =
|
|
||||||
"${pkgs.alps}/bin/alps -theme sourcehut imaps://${domain}:993 smtps://${domain}:465";
|
|
||||||
WorkingDirectory = "${pkgs.alps}/bin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue