fs: add uninsane lan mount
also fix the gid (100 = users group)
This commit is contained in:
@@ -1,22 +1,31 @@
|
|||||||
{ pkgs, ... }:
|
{ 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
|
||||||
{
|
{
|
||||||
fileSystems."/mnt/media-uninsane" = {
|
fileSystems."/mnt/media-uninsane" = {
|
||||||
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
|
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
|
||||||
device = "colin@uninsane.org:/opt/uninsane/media";
|
device = "colin@uninsane.org:/opt/uninsane/media";
|
||||||
fsType = "fuse.sshfs";
|
inherit (uninsane) fsType options;
|
||||||
options = [
|
};
|
||||||
"x-systemd.automount"
|
fileSystems."/mnt/media-uninsane-lan" = {
|
||||||
"_netdev"
|
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
|
||||||
"user"
|
device = "colin@192.168.0.5:/opt/uninsane/media";
|
||||||
"idmap=user"
|
inherit (uninsane) fsType options;
|
||||||
"transform_symlinks"
|
|
||||||
"identityfile=/home/colin/.ssh/id_ed25519"
|
|
||||||
"allow_other"
|
|
||||||
"default_permissions"
|
|
||||||
"uid=1000"
|
|
||||||
"gid=1000"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.sshfs-fuse
|
pkgs.sshfs-fuse
|
||||||
|
Reference in New Issue
Block a user