feat: set up sshfs on deimos

This commit is contained in:
Nick 2025-06-25 18:28:16 -05:00
parent 27781d3d0f
commit 2b4ad99e25
8 changed files with 54 additions and 8 deletions

View file

@ -35,7 +35,11 @@ in
"samba0"
];
sambaFolders = [
remoteDrives = [
"remote0"
];
remoteFolders = [
audiobookshelf.name
jellyfin.name
];
@ -61,6 +65,15 @@ in
];
};
};
sshfsMounts = sshfsDrive: folder: {
name = "${ceres.${sshfsDrive}.mount}/${folder}";
value = {
device = "${ceres.${sshfsDrive}.device}/${folder}";
fsType = "sshfs";
options = ceres.${sshfsDrive}.options;
};
};
in
{
"/" = {
@ -75,7 +88,10 @@ in
}
// (builtins.listToAttrs (map synologyMounts synologyDrives))
// (builtins.listToAttrs (
builtins.concatMap (drive: map (folder: sambaMounts drive folder) sambaFolders) sambaDrives
builtins.concatMap (drive: map (folder: sambaMounts drive folder) remoteFolders) sambaDrives
))
// (builtins.listToAttrs (
builtins.concatMap (drive: map (folder: sshfsMounts drive folder) remoteFolders) remoteDrives
));
swapDevices = [