Configure UGent samba share

This commit is contained in:
coolneng 2022-01-27 00:29:15 +01:00
parent 72daa838d4
commit dfca783211
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
4 changed files with 17 additions and 0 deletions

View File

@ -94,6 +94,7 @@ with pkgs;
age = {
secrets.wireguard.file = secrets/wireguard.age;
secrets.syncthing.file = secrets/syncthing.age;
secrets.samba-ugent.file = secrets/samba-ugent.age;
identityPaths = [ "/etc/ssh/id_ed25519" ];
};

View File

@ -74,4 +74,19 @@
};
};
};
# Samba configuration
fileSystems."/ugent" = {
device = "//files.ugent.be/akasroua";
fsType = "cifs";
options = let
automount_opts =
"x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
credentials = config.age.secrets.samba-ugent.path;
in [
"${automount_opts},credentials=${credentials},noperm,vers=3.0,sec=ntlmv2i"
];
};
}

BIN
secrets/samba-ugent.age Normal file

Binary file not shown.

View File

@ -4,4 +4,5 @@ let
in {
"wireguard.age".publicKeys = [ coolneng ];
"syncthing.age".publicKeys = [ coolneng ];
"samba-ugent.age".publicKeys = [ coolneng ];
}