add pub ssh key to remote xD
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{
|
{config, ...}: {
|
||||||
lenovo = {
|
lenovo = {
|
||||||
hostname = "lenovo";
|
hostname = "lenovo";
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
@@ -27,8 +27,10 @@
|
|||||||
./modules/nixos/networking/networks/109-199-104-83.nix
|
./modules/nixos/networking/networks/109-199-104-83.nix
|
||||||
|
|
||||||
# ssh through port 5522 among other things
|
# ssh through port 5522 among other things
|
||||||
|
# andromeda@lenovo is the only user allowed access
|
||||||
./modules/nixos/networking/hard-ssh.nix
|
./modules/nixos/networking/hard-ssh.nix
|
||||||
./modules/nixos/networking/ssh-as-root.nix
|
./modules/nixos/networking/ssh-as-root.nix
|
||||||
|
{users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];}
|
||||||
|
|
||||||
# boilerplate settings
|
# boilerplate settings
|
||||||
./modules/nixos/common.nix
|
./modules/nixos/common.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user