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