colin
92488dd890
there might still be some bugs to work out here. this produces a workable image, but with some uncertainty around that swapfile (the first attempt had /swapfile living on a tmpfs).
38 lines
757 B
Nix
38 lines
757 B
Nix
{ pkgs, ... }:
|
|
|
|
let sshOpts = {
|
|
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
|
|
{
|
|
fileSystems."/mnt/servo-media-wan" = {
|
|
device = "colin@uninsane.org:/var/lib/uninsane/media";
|
|
inherit (sshOpts) fsType options;
|
|
};
|
|
fileSystems."/mnt/servo-media-lan" = {
|
|
device = "colin@servo:/var/lib/uninsane/media";
|
|
inherit (sshOpts) fsType options;
|
|
};
|
|
fileSystems."/mnt/desko-home" = {
|
|
device = "colin@desko:/home/colin";
|
|
inherit (sshOpts) fsType options;
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
pkgs.sshfs-fuse
|
|
];
|
|
}
|
|
|