1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

feat(fu-berlin): mount home directories via sshfs

This commit is contained in:
2024-04-09 19:41:24 +02:00
parent 4020fd7ad2
commit 9432fa62d8
2 changed files with 34 additions and 2 deletions

View File

@@ -69,8 +69,16 @@ in {
group = config.users.users.me.group;
mode = "400";
};
fu-sftp-key = {
file = ../secrets/fu-sftp-key.age;
owner = "root";
group = "root";
mode = "400";
};
};
system.fsPackages = [ pkgs.sshfs ];
# https://www.zedat.fu-berlin.de/tip4u_157.pdf
fileSystems = let
fu-berlin-cifs-options = [
@@ -85,7 +93,31 @@ in {
"x-systemd.idle-timeout=1min"
];
in {
"${remoteDir}/fu-berlin/zodiac" = {
"${remoteDir}/fu/meinhak99/home" = {
device = "meinhak99@login.zedat.fu-berlin.de:/home/m/meinhak99";
fsType = "sshfs";
options = [
"allow_other"
"_netdev"
"x-systemd.automount"
"reconnect"
"ServerAliveInterval=15"
"IdentityFile=${config.age.secrets.fu-sftp-key.path}"
];
};
"${remoteDir}/fu/xm7234fu/home" = {
device = "xm7234fu@login.zedat.fu-berlin.de:/home/x/xm7234fu";
fsType = "sshfs";
options = [
"allow_other"
"_netdev"
"x-systemd.automount"
"reconnect"
"ServerAliveInterval=15"
"IdentityFile=${config.age.secrets.fu-sftp-key.path}"
];
};
"${remoteDir}/fu/zodiac" = {
device = "//trove.storage.fu-berlin.de/GESCHKULT";
fsType = "cifs";
options =

Submodule secrets updated: 5405c6eb5f...ecdc95abf8