Mess with `isoimage-pc` some more.

Including adding my SSH Keys to the `nixos` user, turning off password authentication, and basically nulling out `zsh-newuser-install` so it doesn't bug me every start the first shell on a fresh boot.
This commit is contained in:
Whovian NTSN 2024-06-12 03:07:36 -04:00
parent 0f5460aa3a
commit c440848d79
1 changed files with 26 additions and 4 deletions

View File

@ -179,6 +179,7 @@
{
/*
isoImage = {
# Defaults
isoName = "nixos-24.11.20240607.051f920-x86_64-linux.iso";
@ -203,6 +204,14 @@
*/
isoImage = {
isoBaseName = "Whovian-nixos";
# Defaults to config.system.nixos.distroId
# config.system.nixos.distroId simply output... "nixos" lol
# I'm adding "Whovian-" in front because I like marking that
# it's a custom image.
};
environment.systemPackages = [
pkgs._7zz
pkgs.bat
@ -230,6 +239,14 @@
screen.enable = true;
zsh = {
enable = true;
shellInit = '' zsh-newuser-install () {} '';
/*
Disable "zsh/newuser" since this is a Live-DVD!
I just want a working shell to use, please.
See https://www.zsh.org/mla/users/2007/msg00396.html for
some conversation about this unchanged feature! ...
17 years later!
*/
# Honestly unsure if I should be using `programs.zsh.envExtra` or
# `programs.zsh.localVariables` here.
/*
@ -246,10 +263,15 @@
users = {
defaultUserShell = pkgs.zsh;
users.root = {
shell = pkgs.zsh;
openssh.authorizedKeys.keys = mySSHKeys;
# Check if needed for "nixos" ISO user.
users.root.openssh.authorizedKeys.keys = mySSHKeys;
users.nixos.openssh.authorizedKeys.keys = mySSHKeys;
};
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
}