forked from DGNum/infrastructure
feat(web03): Add guests directory ass sshfs
This commit is contained in:
parent
2efe27cb62
commit
79cb15120d
2 changed files with 30 additions and 0 deletions
|
@ -14,6 +14,7 @@ lib.extra.mkConfig {
|
|||
# List of services to enable
|
||||
"django-apps"
|
||||
"redirections"
|
||||
"users-guests"
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
|
|
29
machines/nixos/web03/users-guests.nix
Normal file
29
machines/nixos/web03/users-guests.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Reference in a new issue