fs: add desko-root

This commit is contained in:
2022-08-30 21:14:12 -07:00
parent 85add7c531
commit cb98ac2a91

View File

@@ -6,20 +6,19 @@ let sshOpts = rec {
"x-systemd.automount" "x-systemd.automount"
"_netdev" "_netdev"
"user" "user"
"idmap=user"
"transform_symlinks" "transform_symlinks"
"identityfile=/home/colin/.ssh/id_ed25519" "identityfile=/home/colin/.ssh/id_ed25519"
"allow_other" "allow_other"
"default_permissions" "default_permissions"
]; ];
optionsColin = optionsBase ++ [ optionsColin = optionsBase ++ [
"idmap=user"
"uid=1000" "uid=1000"
"gid=100" "gid=100"
]; ];
# optionsRoot = optionsBase ++ [ optionsRoot = optionsBase ++ [
# "uid=0" "sftp_server=/run/wrappers/bin/sudo\\040/nix/store/96idbd49a410sm35kfz7j8rzp5g983qb-openssh-9.0p1/libexec/sftp-server"
# "gid=0" ];
# ];
}; };
in in
{ {
@@ -36,20 +35,23 @@ in
fileSystems."/mnt/servo-root-wan" = { fileSystems."/mnt/servo-root-wan" = {
device = "colin@uninsane.org:/"; device = "colin@uninsane.org:/";
inherit (sshOpts) fsType; inherit (sshOpts) fsType;
# options = sshOpts.optionsRoot; options = sshOpts.optionsRoot;
options = sshOpts.optionsColin;
}; };
fileSystems."/mnt/servo-root-lan" = { fileSystems."/mnt/servo-root-lan" = {
device = "colin@servo:/"; device = "colin@servo:/";
inherit (sshOpts) fsType; inherit (sshOpts) fsType;
# options = sshOpts.optionsRoot; options = sshOpts.optionsRoot;
options = sshOpts.optionsColin;
}; };
fileSystems."/mnt/desko-home" = { fileSystems."/mnt/desko-home" = {
device = "colin@desko:/home/colin"; device = "colin@desko:/home/colin";
inherit (sshOpts) fsType; inherit (sshOpts) fsType;
options = sshOpts.optionsColin; options = sshOpts.optionsColin;
}; };
fileSystems."/mnt/desko-root" = {
device = "colin@desko:/";
inherit (sshOpts) fsType;
options = sshOpts.optionsRoot;
};
environment.systemPackages = [ environment.systemPackages = [
pkgs.sshfs-fuse pkgs.sshfs-fuse