Add firestar key

This commit is contained in:
Aode 2023-02-20 09:45:37 -06:00
parent b462e4ed6e
commit 30e813c9c4
2 changed files with 14 additions and 2 deletions

View file

@ -12,7 +12,18 @@
./firestar
./fonts.nix
./packages.nix
(import ./user.nix { name = "Aode"; })
(import ./user.nix {
name = "Aode";
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILojJubDCB2Mc4fw2mdp5Lzg5mTifXwawIVuyb3vr4lB asonix@graystripe"
];
})
{
services.openssh = {
enable = true;
settings.PermitRootLogin = "no";
};
}
];
};
nixosConfigurations.graystripe = nixpkgs.lib.nixosSystem {

View file

@ -1,10 +1,11 @@
{ name }:
{ name, authorizedKeys ? [] }:
{ pkgs, ... }:
{
# Define a user account. Don't forget to set a password with `passwd`.
users.users.asonix = {
openssh.authorizedKeys.keys = authorizedKeys;
isNormalUser = true;
description = name;
shell = pkgs.zsh;