feat(web03): Add guests directory ass sshfs

This commit is contained in:
Tom Hubrecht 2025-01-14 14:49:28 +01:00
parent 2efe27cb62
commit 79cb15120d
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc
2 changed files with 30 additions and 0 deletions

View file

@ -14,6 +14,7 @@ lib.extra.mkConfig {
# List of services to enable
"django-apps"
"redirections"
"users-guests"
];
extraConfig = {

View file

@ -0,0 +1,29 @@
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
boot.supportedFilesystems.sshfs = true;
systemd.mounts = [
{
what = "dgnum@sas.eleves.ens.fr:/users/guests/";
type = "fuse.sshfs";
where = "/users/guests";
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "default.target" ];
options = builtins.concatStringsSep "," [
# Filesystem options
"_netdev"
"allow_other"
"ro"
# SSH options
"reconnect"
"IdentityFile=/etc/ssh/ssh_host_ed25519_key"
];
}
];
}