feat(core): initialize NaxOS declarative NixOS distribution, modules, and ISO installer
Test NaxOS Module Configurations / test-modules (push) Failing after 6m10s
Test NaxOS Module Configurations / test-modules (push) Failing after 6m10s
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Minimal Live ISO base
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
|
||||
];
|
||||
|
||||
# ZFS and Storage tooling on Live ISO
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.kernelPackages = pkgs.linuxPackages;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
zfs
|
||||
parted
|
||||
gptfdisk
|
||||
e2fsprogs
|
||||
dosfstools
|
||||
smartmontools
|
||||
curl
|
||||
wget
|
||||
git
|
||||
jq
|
||||
tmux
|
||||
htop
|
||||
btop
|
||||
whiptail
|
||||
dialog
|
||||
];
|
||||
|
||||
# Automatically launch installer wizard on tty1
|
||||
services.getty.autologinUser = "root";
|
||||
|
||||
# Welcome banner and installer prompt in bash profile
|
||||
environment.etc."issue".text = ''
|
||||
========================================================
|
||||
Welcome to NaxOS Installation Media
|
||||
========================================================
|
||||
To launch the interactive installer wizard, run:
|
||||
naxos-installer
|
||||
|
||||
To inspect disks and ZFS pools manually:
|
||||
lsblk
|
||||
zpool import
|
||||
========================================================
|
||||
'';
|
||||
|
||||
# Link installer script into PATH
|
||||
system.activationScripts.naxosInstallerScript = ''
|
||||
cp -f ${./scripts/naxos-installer.sh} /usr/local/bin/naxos-installer || true
|
||||
chmod +x /usr/local/bin/naxos-installer || true
|
||||
'';
|
||||
|
||||
# ISO Image identification
|
||||
isoImage.isoBaseName = "naxos-installer";
|
||||
isoImage.volumeID = "NAXOS_INSTALL";
|
||||
isoImage.makeEfiBootable = true;
|
||||
isoImage.makeUsbBootable = true;
|
||||
|
||||
# State version
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
Reference in New Issue
Block a user