Configure UGent samba share
This commit is contained in:
parent
72daa838d4
commit
dfca783211
|
@ -94,6 +94,7 @@ with pkgs;
|
||||||
age = {
|
age = {
|
||||||
secrets.wireguard.file = secrets/wireguard.age;
|
secrets.wireguard.file = secrets/wireguard.age;
|
||||||
secrets.syncthing.file = secrets/syncthing.age;
|
secrets.syncthing.file = secrets/syncthing.age;
|
||||||
|
secrets.samba-ugent.file = secrets/samba-ugent.age;
|
||||||
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
identityPaths = [ "/etc/ssh/id_ed25519" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
|
@ -4,4 +4,5 @@ let
|
||||||
in {
|
in {
|
||||||
"wireguard.age".publicKeys = [ coolneng ];
|
"wireguard.age".publicKeys = [ coolneng ];
|
||||||
"syncthing.age".publicKeys = [ coolneng ];
|
"syncthing.age".publicKeys = [ coolneng ];
|
||||||
|
"samba-ugent.age".publicKeys = [ coolneng ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue