nix-files/modules/universal/fs.nix

36 lines
826 B
Nix
Raw Normal View History

2022-06-02 10:40:14 +00:00
{ pkgs, ... }:
let uninsane = {
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
{
fileSystems."/mnt/media-uninsane" = {
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
device = "colin@uninsane.org:/opt/uninsane/media";
inherit (uninsane) fsType options;
};
fileSystems."/mnt/media-uninsane-lan" = {
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
2022-06-12 22:11:41 +00:00
# TODO: use mdns, and replace this with `servo` instead
device = "colin@192.168.0.5:/opt/uninsane/media";
inherit (uninsane) fsType options;
2022-06-02 10:40:14 +00:00
};
environment.systemPackages = [
pkgs.sshfs-fuse
];
}