servo: sftpgo: move to own directory

This commit is contained in:
Colin 2024-04-22 12:05:16 +00:00
parent bd92076291
commit 12f2798140
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
{
imports = [
./nfs.nix
./sftpgo.nix
./sftpgo
];
users.groups.export = {};

View File

@ -9,8 +9,8 @@
{ config, lib, pkgs, sane-lib, ... }:
let
sftpgo_external_auth_hook = pkgs.static-nix-shell.mkPython3Bin {
pname = "sftpgo_external_auth_hook";
external_auth_hook = pkgs.static-nix-shell.mkPython3Bin {
pname = "external_auth_hook";
srcRoot = ./.;
};
in
@ -75,7 +75,7 @@ in
# however not all clients understand all mode bits (like that `g`, indicating SGID / group sticky bit).
# instead, only send mode bits which are well-understood.
# the full set of bits, from which i filter, is found here: <https://pkg.go.dev/io/fs#FileMode>
./sftpgo_safe_fileinfo.patch
./safe_fileinfo.patch
];
};
@ -135,7 +135,7 @@ in
};
data_provider = {
driver = "memory";
external_auth_hook = "${sftpgo_external_auth_hook}/bin/sftpgo_external_auth_hook";
external_auth_hook = "${external_auth_hook}/bin/external_auth_hook";
# track_quota:
# - 0: disable quota tracking
# - 1: quota is updated on every upload/delete, even if user has no quota restriction