From 6981f95a943beb3a9763af0b263613796a3b3c7f Mon Sep 17 00:00:00 2001 From: notohh Date: Fri, 23 Jun 2023 22:14:38 -0400 Subject: [PATCH] hosts: auth ssh keys --- hosts/arashi/default.nix | 3 +++ hosts/kariru/default.nix | 3 +++ hosts/sakura/default.nix | 4 ++++ hosts/sora/default.nix | 6 ++---- hosts/yuki/default.nix | 3 +++ 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/hosts/arashi/default.nix b/hosts/arashi/default.nix index 5f08008..2701105 100644 --- a/hosts/arashi/default.nix +++ b/hosts/arashi/default.nix @@ -22,4 +22,7 @@ layout = "us"; xkbVariant = ""; }; + users.users.notoh.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKWRbIwwHuyEOLhA9dKTf4TgFqtPR5MNcJorKm731S7G arashi'' + ]; } diff --git a/hosts/kariru/default.nix b/hosts/kariru/default.nix index 5941521..be36d38 100644 --- a/hosts/kariru/default.nix +++ b/hosts/kariru/default.nix @@ -22,4 +22,7 @@ layout = "us"; xkbVariant = ""; }; + users.users.notoh.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmWafzbhah18nm2z1epc6139XVlcKT0ndAI0wbLj+/6 kariru'' + ]; } diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index 62cf6dc..7c218a0 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -24,4 +24,8 @@ layout = "us"; xkbVariant = ""; }; + + users.users.notoh.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICqAjaV2D2J8ln4n39ZvszCF5Jql+0IaSpFCJlzDSLv6 sakura'' + ]; } diff --git a/hosts/sora/default.nix b/hosts/sora/default.nix index c383da3..00f4165 100644 --- a/hosts/sora/default.nix +++ b/hosts/sora/default.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +_: { imports = [ ./hardware-configuration.nix ./networking.nix @@ -9,9 +9,7 @@ boot.tmp.cleanOnBoot = true; zramSwap.enable = true; networking.hostName = "sora"; - networking.domain = ""; - services.openssh.enable = true; users.users.notoh.openssh.authorizedKeys.keys = [ - ''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDqTg12niJ4nkm7jv9bcfiALJ7YA8LhmSpaq035fY/cU1vTrrfJjnilSgIE69IoC+gBxKWly01S9f4RpF0n7BoYx+GopFP99K8D8koaPL5dku7PCRrWBbu/5ZrMhjNrHvQkse36mTcNGgouorhShuJ9LpWF2oBqkKjzLWKnjU3NRJwCUJFizR3thfc2Hri61vxQGt1WQJrqDPZpUnLL6WAeJK/aHOhMOMLbfEPrtmmBse+xtwFFV+jxEY4MitvgnweQ5i7yKqtrldKQ0o03AO3NRikeQbRmEm6zlHTQpd6EOktTKOJKZYtOZ1ASHPxp8B10B0MBVpYWrvCmb+vyrWszYKeCyuu6a57gfoai+AHNEyxrtT2diJANia4WgW8kHGxuVAXFpKX/tr5ZvGXq8uWlQUgrAHphlaEF+x97aqi8GuZTqq5Y9xH4iwm6V8EK3VvLWTwyQauCq7IypxlNsyj8hUo9TtYQaIHHt1kNFahXLKnIuqmdVq6TGYt9AuK5Zek='' + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGmI3hRDFjxLjrM3pE471e4jxSlcqeizh3iNVVdaMHeN sora'' ]; } diff --git a/hosts/yuki/default.nix b/hosts/yuki/default.nix index a05da42..15e6481 100644 --- a/hosts/yuki/default.nix +++ b/hosts/yuki/default.nix @@ -22,4 +22,7 @@ layout = "us"; xkbVariant = ""; }; + users.users.notoh.openssh.authorizedKeys.keys = [ + ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINoLDqOjZIQQ+YYir9MQnlh8wgqI1dz5nYL054OnIgDa yuki'' + ]; }