Clan-app: generate hw report

This commit is contained in:
Johannes Kirschbauer
2024-08-22 15:56:33 +02:00
parent 4a04775b1d
commit 4080fe41f8
4 changed files with 183 additions and 21 deletions

View File

@@ -122,11 +122,15 @@ def generate_machine_hardware_info(
# Disable known hosts file
"-o",
"UserKnownHostsFile=/dev/null",
"-p",
str(machine.target_host.port),
# Disable strict host key checking. The GUI user cannot type "yes" into the ssh terminal.
"-o",
"StrictHostKeyChecking=no",
*(
["-p", str(machine.target_host.port)]
if machine.target_host.port
else []
),
target_host,
"-o UserKnownHostsFile=/dev/null",
f"{hostname}",
"nixos-generate-config",
# Filesystems are managed by disko
"--no-filesystems",