Compare commits

...

3 commits

Author SHA1 Message Date
Michael Strobel
82fb7dedaa sftpman: add missing options
- `authType` is missing the `authentication-agent` enum value
- `mountDestPath` is missing completely

(cherry picked from commit 3351348827)
2026-01-08 17:14:43 -05:00
home-manager-ci[bot]
8c8a16d413 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3c9db02515ef1d9b6b709fc60ba9a540957f661c?narHash=sha256-2GffSfQxe3sedHzK%2BsTKlYo/NTIAGzbFCIsNMUPAAnk%3D' (2026-01-05)
  → 'github:NixOS/nixpkgs/d351d0653aeb7877273920cd3e823994e7579b0b?narHash=sha256-r4GVX%2BFToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE%3D' (2026-01-07)
2026-01-08 00:37:08 -05:00
home-manager-ci[bot]
c08430923e flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/64049ca74d63e971b627b5f3178d95642e61cedd?narHash=sha256-yA/CuWyqm%2BAQo2ivGy6PlYrjZBQm7jfbe461%2B4HF2fo%3D' (2026-01-02)
  → 'github:NixOS/nixpkgs/3c9db02515ef1d9b6b709fc60ba9a540957f661c?narHash=sha256-2GffSfQxe3sedHzK%2BsTKlYo/NTIAGzbFCIsNMUPAAnk%3D' (2026-01-05)
2026-01-07 11:02:15 +01:00
7 changed files with 35 additions and 3 deletions

6
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1767325753,
"narHash": "sha256-yA/CuWyqm+AQo2ivGy6PlYrjZBQm7jfbe461+4HF2fo=",
"lastModified": 1767799921,
"narHash": "sha256-r4GVX+FToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "64049ca74d63e971b627b5f3178d95642e61cedd",
"rev": "d351d0653aeb7877273920cd3e823994e7579b0b",
"type": "github"
},
"original": {

View file

@ -40,6 +40,12 @@ let
description = "The remote path to mount.";
};
mountDestPath = mkOption {
type = types.nullOr types.str;
default = null;
description = "The path on the current machine where the remote path would be mounted.";
};
authType = mkOption {
type = types.enum [
"password"
@ -47,6 +53,7 @@ let
"hostbased"
"keyboard-interactive"
"gssapi-with-mic"
"authentication-agent"
];
default = "publickey";
description = "The authentication method to use.";

View file

@ -23,6 +23,13 @@
user = "user";
sshKey = "/home/user/.ssh/id_rsa";
};
mount4 = {
host = "host4.example.com";
mountPoint = "/another/path/somewhere/else";
user = "user";
authType = "authentication-agent";
mountDestPath = "/mnt/host4";
};
};
};
@ -36,5 +43,8 @@
assertFileContent \
home-files/.config/sftpman/mounts/mount3.json \
${./expected-mount3.json}
assertFileContent \
home-files/.config/sftpman/mounts/mount4.json \
${./expected-mount4.json}
'';
}

View file

@ -3,6 +3,7 @@
"beforeMount": "true",
"host": "host1.example.com",
"id": "mount1",
"mountDestPath": null,
"mountOptions": [
"idmap=user"
],

View file

@ -3,6 +3,7 @@
"beforeMount": "true",
"host": "host2.example.com",
"id": "mount2",
"mountDestPath": null,
"mountOptions": [],
"mountPoint": "/another/path",
"port": 22,

View file

@ -3,6 +3,7 @@
"beforeMount": "true",
"host": "host3.example.com",
"id": "mount3",
"mountDestPath": null,
"mountOptions": [],
"mountPoint": "/yet/another/path",
"port": 22,

View file

@ -0,0 +1,12 @@
{
"authType": "authentication-agent",
"beforeMount": "true",
"host": "host4.example.com",
"id": "mount4",
"mountDestPath": "/mnt/host4",
"mountOptions": [],
"mountPoint": "/another/path/somewhere/else",
"port": 22,
"sshKey": "/home/user/.ssh/id_ed25519",
"user": "user"
}