From 6019454556cb0e0d953dddd52ab73cb6062a8ff3 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 2 Oct 2023 07:21:57 +0200 Subject: Fixes to last article --- content/blog/nix/nixos-getting-started.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/blog/nix/nixos-getting-started.md b/content/blog/nix/nixos-getting-started.md index b7c5811..8aad2bd 100644 --- a/content/blog/nix/nixos-getting-started.md +++ b/content/blog/nix/nixos-getting-started.md @@ -47,9 +47,12 @@ nixos-generate-config --root /mnt ``` This will generate a `/mnt/etc/nixos/hardware-configuration.nix` with the specifics of your machine along with a basic `/mnt/etc/nixos/configuration.nix` that I replaced with: -```sh +```nix { config, pkgs, ... }: { + imports = [ + ./hardware-configuration.nix + ]; boot.kernelParams = [ "console=ttyS0" "console=tty1" @@ -92,7 +95,6 @@ This will generate a `/mnt/etc/nixos/hardware-configuration.nix` with the specif doas.enable = true; sudo.enable = false; }; - services = { services = { openssh = { enable = true; @@ -107,9 +109,9 @@ This will generate a `/mnt/etc/nixos/hardware-configuration.nix` with the specif adyxax = { description = "Julien Dessaux"; extraGroups = [ "wheel" ]; - isNormalUser = true; hashedPassword = "$y$j9T$Nne7Ad1nxNmluCKBzBG3//$h93j8xxfBUD98f/7nGQqXPeM3QdZatMbzZ0p/G2P/l1"; home = "/home/julien"; + isNormalUser = true; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILOJV391WFRYgCVA2plFB8W8sF9LfbzXZOrxqaOrrwco adyxax@yen" ]; }; root = { -- cgit v1.2.3