simplify auth to not accept password

This commit is contained in:
Kiara Grouwstra 2025-08-25 19:40:48 +02:00
parent 737c6d868c
commit 3102be50ea
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 5 additions and 15 deletions

View file

@ -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, ... }:

View file

@ -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;
};
};
}; };
}; };
}; };