From bc90f009fc01f28018fcb78e7e4823c9287f13f4 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 26 Dec 2024 15:48:05 +0200 Subject: [PATCH] Refactored configuration.nix --- nixos/configuration.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index a0e54c9..7ebb374 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -10,13 +10,11 @@ (modulesPath + "/profiles/qemu-guest.nix") ./disk-config.nix ]; + boot.loader.grub = { - # no need to set devices, disko will add all devices that have a EF02 partition to the list already - # devices = [ ]; efiSupport = true; efiInstallAsRemovable = true; }; - services.openssh.enable = true; environment.systemPackages = map lib.lowPrio [ pkgs.curl @@ -24,9 +22,11 @@ pkgs.neovim ]; - users.users.root.initialPassword = "1234"; + services.openssh.enable = true; + services.openssh.passwordAuthentication = false; + + users.users.root.hashedPassword = "$y$j9T$ZT9dUDb5fMGtQTQumYE49.$KI98XnTuykSgTAeP/gttTzEaj0Ys834WxAtKzT1CAb6"; users.users.root.openssh.authorizedKeys.keys = [ - # change this to your ssh key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7P9K9D5RkBk+JCRRS6AtHuTAc6cRpXfRfRMg/Kyren" ];