From d2d1bf88a96d7180ce6ac056b6be6a13c93cd3a6 Mon Sep 17 00:00:00 2001 From: Tasia Iso Date: Thu, 3 Oct 2024 12:39:52 +0200 Subject: [PATCH] ssh --- hosts/vulpecula/configuration.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/vulpecula/configuration.nix b/hosts/vulpecula/configuration.nix index 5237bbe..b8c4803 100644 --- a/hosts/vulpecula/configuration.nix +++ b/hosts/vulpecula/configuration.nix @@ -81,10 +81,20 @@ boot.loader.grub.device = "/dev/sda"; + users.users.tasia = { + isNormalUser = true; + description = "Tasia"; + extraGroups = ["networkmanager" "wheel" "dialout"]; + initialPassword = "correcthorsebatterystaple"; + openssh.authorizedKeys.keys = [ + sshKeys.tasia.yaseen + ]; + }; + boot.tmp.cleanOnBoot = true; zramSwap.enable = true; networking.domain = ""; services.openssh.enable = true; - users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLyDLtqUhEQwIsPx0XgQ9OJb2+XxL+2ra4goNJEgwf0 tasia@yaseen'' ]; + # users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILLyDLtqUhEQwIsPx0XgQ9OJb2+XxL+2ra4goNJEgwf0 tasia@yaseen'' ]; system.stateVersion = "24.05"; }