aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2023-10-02 07:21:57 +0200
committerJulien Dessaux2023-10-02 07:21:57 +0200
commit6019454556cb0e0d953dddd52ab73cb6062a8ff3 (patch)
treeb75cdaded7102608761093c2df2c235d5862cad0
parentFixed CSP (diff)
downloadwww-6019454556cb0e0d953dddd52ab73cb6062a8ff3.tar.gz
www-6019454556cb0e0d953dddd52ab73cb6062a8ff3.tar.bz2
www-6019454556cb0e0d953dddd52ab73cb6062a8ff3.zip
Fixes to last article
-rw-r--r--content/blog/nix/nixos-getting-started.md8
1 files 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"
@@ -93,7 +96,6 @@ This will generate a `/mnt/etc/nixos/hardware-configuration.nix` with the specif
sudo.enable = false;
};
services = {
- services = {
openssh = {
enable = true;
settings.KbdInteractiveAuthentication = false;
@@ -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 = {