mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-08 12:54:38 -05:00
feat: set up sshfs on deimos
This commit is contained in:
parent
27781d3d0f
commit
2b4ad99e25
8 changed files with 54 additions and 8 deletions
|
@ -1,7 +1,9 @@
|
|||
{ devicesFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
sshfsOptions
|
||||
fileModeAndDirMode
|
||||
ceresStorageDriveName
|
||||
ownerExclusiveReadWriteMask
|
||||
readWritePermissions
|
||||
sambaPermissions
|
||||
|
@ -9,7 +11,6 @@ let
|
|||
ceresIP
|
||||
;
|
||||
ceresName = "ceres";
|
||||
ceresStorageDriveName = "NAS1";
|
||||
in
|
||||
{
|
||||
label = "Ceres";
|
||||
|
@ -33,4 +34,9 @@ in
|
|||
device = "//${ceresIP}";
|
||||
options = sambaPermissions ++ fileModeAndDirMode ++ userIdForUser0;
|
||||
};
|
||||
remote0 = {
|
||||
mount = "/mnt/media/remote";
|
||||
device = "nick@24.76.173.0:/mnt/media/${ceresStorageDriveName}";
|
||||
options = sshfsOptions;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,6 +21,15 @@ let
|
|||
"x-systemd.automount"
|
||||
"x-systemd.requires=network-online.target"
|
||||
];
|
||||
sshfsOptions = [
|
||||
"allow_other"
|
||||
"_netdev"
|
||||
"x-systemd.automount"
|
||||
"reconnect"
|
||||
"user"
|
||||
"ServerAliveInterval=15"
|
||||
"IdentityFile=/var/run/secrets/ssh/private"
|
||||
];
|
||||
fileModeAndDirMode = [
|
||||
"file_mode=0644"
|
||||
"dir_mode=0755"
|
||||
|
@ -36,6 +45,7 @@ let
|
|||
];
|
||||
dummy = [
|
||||
];
|
||||
ceresStorageDriveName = "NAS1";
|
||||
ceresIP = "192.168.50.140";
|
||||
charonIP = "192.168.50.42";
|
||||
deimosIP = "192.168.50.142";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue