Skip to content

Commit

Permalink
Draft, import ssh key from ssh.nix
Browse files Browse the repository at this point in the history
Signed-off-by: Samuli Leivo <samuli.leivo@unikie.com>
  • Loading branch information
leivos-unikie committed Apr 16, 2024
1 parent 4609c2d commit 97c5ce6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions modules/common/development/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIEJ9ewKwo5FLj6zE30KnTn8+nw7aKdei9SeTwaAeRdJDAAAABHNzaDo= brian@minerva"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdNDuKwAsAff4iFRfujo77W4cyAbfQHjHP57h/7tJde ville.ilvonen@unikie.com"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICKm9NtS/ZmrxQhY/pbRlX+9O1VaBEd8D9vojDtvS0Ru juliuskoskela@vega"

# For ghaf-installer automated testing:
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAolaKCuIUBQSBFGFZI1taNX+JTAr8edqUts7A6k2Kv7"
];
in
with lib; {
Expand Down
4 changes: 1 addition & 3 deletions targets/lenovo-x1-installer/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
ghaf.hardware.ax88179_178a.enable = true;

# SSH key to installer for test automation.
users.users.nixos.openssh.authorizedKeys.keys = lib.mkIf (variant == "debug") [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAolaKCuIUBQSBFGFZI1taNX+JTAr8edqUts7A6k2Kv7"
];
users.users.nixos.openssh.authorizedKeys.keys = lib.mkIf (variant == "debug") (import ../../modules/common/development/ssh.nix).authorizedKeys;

systemd.services.wpa_supplicant.wantedBy = lib.mkForce ["multi-user.target"];
systemd.services.sshd.wantedBy = lib.mkForce ["multi-user.target"];
Expand Down

0 comments on commit 97c5ce6

Please sign in to comment.