Archived
Replaces the single monolithic installer.nix (preserved as installer_old.nix for reference) with a shared common.nix carrying the install-script/user/SSH baseline, consumed by per-platform targets (installer.nix for netboot/ISO, new proxmox-lxc.nix for the Proxmox LXC-based flow). flake.nix drops the nixos-generators input in favor of building images directly from each nixosConfiguration's system.build.isoImage/tarball. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
59 lines
847 B
Nix
59 lines
847 B
Nix
{ pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [
|
|
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
|
];
|
|
|
|
|
|
# networking.useDHCP = true;
|
|
|
|
time.timeZone = "Australia/Brisbane";
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
services.openssh.settings = {
|
|
PermitRootLogin = "yes";
|
|
};
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
curl
|
|
jq
|
|
parted
|
|
e2fsprogs
|
|
btrfs-progs
|
|
util-linux
|
|
disko
|
|
];
|
|
|
|
|
|
# environment.etc."auto-install.sh" = {
|
|
# source = ./auto-install.sh;
|
|
# mode = "0755";
|
|
# };
|
|
|
|
|
|
# users.users.root = {
|
|
# initialPassword = "nixos";
|
|
# };
|
|
|
|
|
|
users.users.nixos = {
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"wheel"
|
|
];
|
|
};
|
|
|
|
|
|
# Only for ISO/Linode serial environments if required
|
|
# NOT for LXC
|
|
#
|
|
# boot.kernelParams = [
|
|
# "console=ttyS0,19200n8"
|
|
# ];
|
|
|
|
} |