fs: add desko mount & rework servo mount to use mdns
This commit is contained in:
parent
1a40daeb25
commit
7535986932
|
@ -1,6 +1,6 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let uninsane = {
|
let sshOpts = {
|
||||||
fsType = "fuse.sshfs";
|
fsType = "fuse.sshfs";
|
||||||
options = [
|
options = [
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
|
@ -18,16 +18,18 @@ let uninsane = {
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
fileSystems."/mnt/media-uninsane" = {
|
fileSystems."/mnt/media-uninsane" = {
|
||||||
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
|
|
||||||
device = "colin@uninsane.org:/opt/uninsane/media";
|
device = "colin@uninsane.org:/opt/uninsane/media";
|
||||||
inherit (uninsane) fsType options;
|
inherit (sshOpts) fsType options;
|
||||||
};
|
};
|
||||||
fileSystems."/mnt/media-uninsane-lan" = {
|
fileSystems."/mnt/media-uninsane-lan" = {
|
||||||
# device = "sshfs#colin@uninsane.org:/opt/uninsane/media";
|
device = "colin@servo:/opt/uninsane/media";
|
||||||
# TODO: use mdns, and replace this with `servo` instead
|
inherit (sshOpts) fsType options;
|
||||||
device = "colin@192.168.0.5:/opt/uninsane/media";
|
|
||||||
inherit (uninsane) fsType options;
|
|
||||||
};
|
};
|
||||||
|
fileSystems."/mnt/desko-home" = {
|
||||||
|
device = "colin@desko:/home/colin";
|
||||||
|
inherit (sshOpts) fsType options;
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.sshfs-fuse
|
pkgs.sshfs-fuse
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user