X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fftp.nix;h=233031a05ed335534dca26303e82927da2602b18;hb=ded643e14096a7cb166c78dd961cf68fb4ddb0cf;hp=585fe638b429e3402537b9a14c215438511f5d20;hpb=981fa80354fd6f00f49446777c38f77bd8a65f65;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/ftp.nix b/modules/private/ftp.nix index 585fe63..233031a 100644 --- a/modules/private/ftp.nix +++ b/modules/private/ftp.nix @@ -16,8 +16,9 @@ in config = lib.mkIf config.services.pure-ftpd.enable { services.duplyBackup.profiles.ftp = { rootDir = "/var/lib/ftp"; + remotes = [ "eriomem" "ovh" ]; }; - security.acme2.certs."ftp" = config.myServices.certificates.certConfig // { + security.acme.certs."ftp" = config.myServices.certificates.certConfig // { domain = "eldiron.immae.eu"; postRun = '' systemctl restart pure-ftpd.service @@ -32,16 +33,13 @@ in }; }; - users.users = [ - { - name = "ftp"; - uid = config.ids.uids.ftp; # 8 - group = "ftp"; - description = "Anonymous FTP user"; - home = "/homeless-shelter"; - extraGroups = [ "keys" ]; - } - ]; + users.users.ftp = { + uid = config.ids.uids.ftp; # 8 + group = "ftp"; + description = "Anonymous FTP user"; + home = "/homeless-shelter"; + extraGroups = [ "keys" ]; + }; users.groups.ftp.gid = config.ids.gids.ftp; @@ -113,7 +111,7 @@ in MaxDiskUsage 99 CustomerProof yes TLS 1 - CertFile ${config.security.acme2.certs.ftp.directory}/full.pem + CertFile ${config.security.acme.certs.ftp.directory}/full.pem ''; in { description = "Pure-FTPd server";