mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
feat(fu-berlin): mount zodiac cifs
This commit is contained in:
@@ -66,6 +66,36 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://www.zedat.fu-berlin.de/tip4u_157.pdf
|
||||||
|
fileSystems = let
|
||||||
|
fu-berlin-cifs-options = [
|
||||||
|
"uid=${toString config.users.users.me.uid}"
|
||||||
|
"gid=${toString config.users.groups.users.gid}"
|
||||||
|
"rw"
|
||||||
|
"nounix"
|
||||||
|
"domain=fu-berlin"
|
||||||
|
"noauto"
|
||||||
|
"x-systemd.automount"
|
||||||
|
"x-systemd.device-timeout=1"
|
||||||
|
"x-systemd.idle-timeout=1min"
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
"/media/fu-berlin/zodiac" = {
|
||||||
|
device = "//trove.storage.fu-berlin.de/GESCHKULT";
|
||||||
|
fsType = "cifs";
|
||||||
|
options =
|
||||||
|
fu-berlin-cifs-options
|
||||||
|
++ [
|
||||||
|
"credentials=${config.age.secrets.cifs-credentials-zodiac.path}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
age.secrets = {
|
||||||
|
cifs-credentials-fu-berlin.file = ../secrets/cifs-credentials-fu-berlin.age;
|
||||||
|
cifs-credentials-zodiac.file = ../secrets/cifs-credentials-zodiac.age;
|
||||||
|
};
|
||||||
|
|
||||||
systemd.services.fu-vpn = {
|
systemd.services.fu-vpn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wants = ["network-online.target"];
|
wants = ["network-online.target"];
|
||||||
|
|||||||
2
secrets
2
secrets
Submodule secrets updated: 9efd6ac7e1...e13c0cc4c1
Reference in New Issue
Block a user