Skip to content

Commit

Permalink
feat: add lattice tpm2 key
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Rabbito <[email protected]>
  • Loading branch information
anthr76 committed Jan 4, 2025
1 parent 21a21ae commit 7aeab93
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion home-manager/personalities/cli/git/git.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ pkgs, ... }:
let
git-ssh-signingkey = pkgs.writeShellScriptBin "git-ssh-signingkey" ''
echo key::$(${pkgs.openssh}/bin/ssh-add -L | ${pkgs.gnugrep}/bin/grep -m 1 -E "pkcs11|Authentication")
echo key::$(${pkgs.openssh}/bin/ssh-add -L | ${pkgs.gnugrep}/bin/grep -m 1 -E "pkcs11|Authentication|nistp256")
'';
in {
home.packages = with pkgs; [ git-ssh-signingkey git-extras pre-commit ];
Expand Down
2 changes: 1 addition & 1 deletion home-manager/users/anthony/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
};
};

home.file.".ssh/e39_tpm2.pub".text = (builtins.readFile ./e39_tpm2.pub);
home.file.".ssh/lattice_tpm2.pub".text = (builtins.readFile ./lattice_tpm2.pub);
home.file.".ssh/yubi.pub".text = (builtins.readFile ./yubi.pub);

# Add stuff for your user as you see fit:
Expand Down
1 change: 0 additions & 1 deletion home-manager/users/anthony/e39_tpm2.pub

This file was deleted.

1 change: 1 addition & 0 deletions home-manager/users/anthony/lattice_tpm2.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ1v92wyFhU7I87kuWPC7seb9VGYqCSnVYFSwnjmz21aIoyznxY2m0zLgssKE0jGnJV38mPEEqlQ7zCzcL+N5uk= lattice
2 changes: 1 addition & 1 deletion nixos/personalities/base/users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
hashedPasswordFile = config.sops.secrets.anthony-password.path;
openssh.authorizedKeys.keys = [
(builtins.readFile ../../../home-manager/users/anthony/yubi.pub)
(builtins.readFile ../../../home-manager/users/anthony/e39_tpm2.pub)
(builtins.readFile ../../../home-manager/users/anthony/lattice_tpm2.pub)
];
};
};
Expand Down
2 changes: 1 addition & 1 deletion nixos/personalities/desktop/game-console.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
];
openssh.authorizedKeys.keys = [
(builtins.readFile ../../../home-manager/users/anthony/yubi.pub)
(builtins.readFile ../../../home-manager/users/anthony/e39_tpm2.pub)
(builtins.readFile ../../../home-manager/users/anthony/lattice_tpm2.pub)
];
};
};
Expand Down

0 comments on commit 7aeab93

Please sign in to comment.