mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
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
|
#### 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
|
#### Show QR for external wireguard client
|
||||||
|
|
||||||
|
|
|
@ -4,18 +4,27 @@
|
||||||
...
|
...
|
||||||
}: nodeName: nodeAttrs: let
|
}: nodeName: nodeAttrs: let
|
||||||
inherit (self.hosts.${nodeName}) system;
|
inherit (self.hosts.${nodeName}) system;
|
||||||
configuration = {pkgs, ...}: {
|
configuration = {
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
nix.extraOptions = ''
|
nix.extraOptions = ''
|
||||||
experimental-features = nix-command flakes recursive-nix
|
experimental-features = nix-command flakes recursive-nix
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
isoImage.isoName = lib.mkForce "nixos-image-${nodeName}.iso";
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PermitRootLogin = "yes";
|
settings.PermitRootLogin = "yes";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.root.password = "nixos";
|
users.users.root = {
|
||||||
|
password = "nixos";
|
||||||
|
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA5Uq+CDy5Pmt3If5M6d8K/Q7HArU6sZ7sgoj3T521Wm"];
|
||||||
|
};
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables.EDITOR = "nvim";
|
variables.EDITOR = "nvim";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue