chore: change iso image name, add ssh key

This commit is contained in:
oddlama 2023-04-28 00:51:38 +02:00
parent 3e810b1711
commit 5c98df767b
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 13 additions and 4 deletions

View file

@ -63,8 +63,8 @@ This is my personal nix config.
#### Initial deploy
- Boot from some nixos-minimal.iso
-
- Create a iso disk image for the system using `nix build --print-out-paths --no-link .#installer-image-<hostname>`
- dd the resulting image to a stick and boot from it
#### Show QR for external wireguard client

View file

@ -4,18 +4,27 @@
...
}: nodeName: nodeAttrs: let
inherit (self.hosts.${nodeName}) system;
configuration = {pkgs, ...}: {
configuration = {
pkgs,
lib,
...
}: {
system.stateVersion = "23.05";
nix.extraOptions = ''
experimental-features = nix-command flakes recursive-nix
'';
isoImage.isoName = lib.mkForce "nixos-image-${nodeName}.iso";
services.openssh = {
enable = true;
settings.PermitRootLogin = "yes";
};
users.users.root.password = "nixos";
users.users.root = {
password = "nixos";
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA5Uq+CDy5Pmt3If5M6d8K/Q7HArU6sZ7sgoj3T521Wm"];
};
environment = {
variables.EDITOR = "nvim";