forked from mirrors_public/oddlama_nix-config
chore: change iso image name, add ssh key
This commit is contained in:
parent
3e810b1711
commit
5c98df767b
2 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue