diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-28 00:34:01 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-28 00:39:25 +0200 |
commit | fe696f35f5e0789d4bc448bca4bbaf93d1182175 (patch) | |
tree | 4b69c0186f4bf6cbaa8711feb073dff2a5ade43b /modules/private/ftp.nix | |
parent | 4506dbe51901f66406a02042b2097b3b3856e8a6 (diff) | |
download | Nix-fe696f35f5e0789d4bc448bca4bbaf93d1182175.tar.gz Nix-fe696f35f5e0789d4bc448bca4bbaf93d1182175.tar.zst Nix-fe696f35f5e0789d4bc448bca4bbaf93d1182175.zip |
Remove private specificities from pure-ftpd package and lib
Diffstat (limited to 'modules/private/ftp.nix')
-rw-r--r-- | modules/private/ftp.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/private/ftp.nix b/modules/private/ftp.nix index 842d2d6..ada5f41 100644 --- a/modules/private/ftp.nix +++ b/modules/private/ftp.nix | |||
@@ -1,4 +1,7 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, myconfig, ... }: |
2 | let | ||
3 | package = pkgs.pure-ftpd.override { ldapFtpId = "immaeFtp"; }; | ||
4 | in | ||
2 | { | 5 | { |
3 | options = { | 6 | options = { |
4 | services.pure-ftpd.enable = lib.mkOption { | 7 | services.pure-ftpd.enable = lib.mkOption { |
@@ -109,7 +112,7 @@ | |||
109 | wantedBy = [ "multi-user.target" ]; | 112 | wantedBy = [ "multi-user.target" ]; |
110 | after = [ "network.target" ]; | 113 | after = [ "network.target" ]; |
111 | 114 | ||
112 | serviceConfig.ExecStart = "${pkgs.pure-ftpd}/bin/pure-ftpd ${configFile}"; | 115 | serviceConfig.ExecStart = "${package}/bin/pure-ftpd ${configFile}"; |
113 | serviceConfig.Type = "forking"; | 116 | serviceConfig.Type = "forking"; |
114 | serviceConfig.PIDFile = "/run/pure-ftpd.pid"; | 117 | serviceConfig.PIDFile = "/run/pure-ftpd.pid"; |
115 | }; | 118 | }; |