2022-06-02 10:40:14 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2022-06-14 05:25:38 +00:00
|
|
|
let sshOpts = {
|
2022-06-10 07:38:02 +00:00
|
|
|
fsType = "fuse.sshfs";
|
|
|
|
options = [
|
|
|
|
"x-systemd.automount"
|
|
|
|
"_netdev"
|
|
|
|
"user"
|
|
|
|
"idmap=user"
|
|
|
|
"transform_symlinks"
|
|
|
|
"identityfile=/home/colin/.ssh/id_ed25519"
|
|
|
|
"allow_other"
|
|
|
|
"default_permissions"
|
|
|
|
"uid=1000"
|
|
|
|
"gid=100"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
2022-06-02 10:40:14 +00:00
|
|
|
{
|
2022-06-14 07:13:39 +00:00
|
|
|
fileSystems."/mnt/servo-media-wan" = {
|
2022-06-29 08:17:53 +00:00
|
|
|
device = "colin@uninsane.org:/var/lib/uninsane/media";
|
2022-06-14 05:25:38 +00:00
|
|
|
inherit (sshOpts) fsType options;
|
2022-06-10 07:38:02 +00:00
|
|
|
};
|
2022-06-14 07:13:39 +00:00
|
|
|
fileSystems."/mnt/servo-media-lan" = {
|
2022-06-29 08:17:53 +00:00
|
|
|
device = "colin@servo:/var/lib/uninsane/media";
|
2022-06-14 05:25:38 +00:00
|
|
|
inherit (sshOpts) fsType options;
|
2022-06-02 10:40:14 +00:00
|
|
|
};
|
2022-06-14 05:25:38 +00:00
|
|
|
fileSystems."/mnt/desko-home" = {
|
|
|
|
device = "colin@desko:/home/colin";
|
|
|
|
inherit (sshOpts) fsType options;
|
|
|
|
};
|
|
|
|
|
2022-06-02 10:40:14 +00:00
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.sshfs-fuse
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|