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

2 Commits

3 changed files with 36 additions and 4 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 =

View File

@@ -25,13 +25,13 @@
"x-systemd.idle-timeout=1min"
];
in {
fileSystems."${remoteDir}/hu-berlin/germpro2" = {
fileSystems."${remoteDir}/hu/germpro2" = {
device = "//hugerm31c.user.hu-berlin.de/germpro2/ling";
fsType = "cifs";
options = hu-berlin-cifs-options;
};
fileSystems."${remoteDir}/hu-berlin/germhome" = {
fileSystems."${remoteDir}/hu/meinhaki/home" = {
device = "//hugerm31c.user.hu-berlin.de/germhome/ling/meinhaki";
fsType = "cifs";
options = hu-berlin-cifs-options;

Submodule secrets updated: 5405c6eb5f...ecdc95abf8