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