Add firestar key
This commit is contained in:
parent
b462e4ed6e
commit
30e813c9c4
2 changed files with 14 additions and 2 deletions
13
flake.nix
13
flake.nix
|
@ -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 {
|
||||
|
|
3
user.nix
3
user.nix
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue