fix up /mnt/desko-root to be usable as a remote /nix store

This commit is contained in:
2022-08-30 22:25:22 -07:00
parent 877870a522
commit 13b937fbb7

View File

@@ -6,18 +6,20 @@ let sshOpts = rec {
"x-systemd.automount" "x-systemd.automount"
"_netdev" "_netdev"
"user" "user"
"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 ++ [
"transform_symlinks"
"idmap=user" "idmap=user"
"uid=1000" "uid=1000"
"gid=100" "gid=100"
]; ];
optionsRoot = optionsBase ++ [ optionsRoot = optionsBase ++ [
"sftp_server=/run/wrappers/bin/sudo\\040/nix/store/96idbd49a410sm35kfz7j8rzp5g983qb-openssh-9.0p1/libexec/sftp-server" # we don't transform_symlinks because that breaks the validity of remote /nix stores
"sftp_server=/run/wrappers/bin/sudo\\040${pkgs.openssh}/libexec/sftp-server"
]; ];
}; };
in in