forked from Fediversity/Fediversity
simplify auth to not accept password
This commit is contained in:
parent
ea74f048cd
commit
7ccfe4c189
2 changed files with 5 additions and 15 deletions
|
@ -32,7 +32,7 @@ let
|
|||
ssh = {
|
||||
host = "localhost";
|
||||
username = "root";
|
||||
authentication.password = "password";
|
||||
key-file = null;
|
||||
};
|
||||
nixos-configuration =
|
||||
{ pkgs, ... }:
|
||||
|
|
|
@ -45,20 +45,10 @@ let
|
|||
type = nullOr str;
|
||||
default = null;
|
||||
};
|
||||
authentication = mkOption {
|
||||
description = "authentication method";
|
||||
type = attrTag {
|
||||
private-key = mkOption {
|
||||
description = "path to the user's SSH private key";
|
||||
type = str;
|
||||
example = "/root/.ssh/id_ed25519";
|
||||
};
|
||||
password = mkOption {
|
||||
description = "SSH password";
|
||||
# TODO: mark as sensitive
|
||||
type = str;
|
||||
};
|
||||
};
|
||||
key-file = mkOption {
|
||||
description = "path to the user's SSH private key";
|
||||
type = nullOr str;
|
||||
example = "/root/.ssh/id_ed25519";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue