From d8bd26b51e6a9ce235f62ce8d3958f8aee77fbc6 Mon Sep 17 00:00:00 2001 From: Kris Date: Sat, 28 Mar 2026 11:45:28 +0200 Subject: [PATCH] a --- README.md | 25 +++++++++++++++++++++++++ flake.nix | 16 +++++++++++++++- hosts/default/configuration.nix | 2 ++ 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b9f7c3..b112ab6 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,31 @@ You need: - your disks partitioned and mounted - this repo _(`git@tangled.sh:kris.darkworld.download/nix`)_ +## Build a custom installer ISO + +This flake now exposes an installer image with extra install tools preloaded +(`git`, `disko`, partitioning and filesystem tools). + +Build it from this repo: + +```bash +nix build .#installerIso +``` + +The ISO is created at: + +```text +./result/iso/*.iso +``` + +Write it to a USB stick (replace `/dev/sdX`): + +```bash +sudo dd if=./result/iso/*.iso of=/dev/sdX bs=4M status=progress oflag=sync +``` + +Then boot from that USB and follow the install steps below. + ## Disk Layout This repo now uses `disko` for the default desktop host. diff --git a/flake.nix b/flake.nix index 031ab4b..cb9d248 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "https://tangled.sh/@kris.darkworld.download/nix"; + description = "Not a Deltarune reference!"; inputs = { # Core @@ -42,6 +42,20 @@ }; outputs = { self, nixpkgs, ... }@inputs: { + nixosConfigurations.installer = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { + inherit inputs; + }; + modules = [ + "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" + ./hosts/installer/configuration.nix + ]; + }; + + packages.x86_64-linux.installerIso = + self.nixosConfigurations.installer.config.system.build.isoImage; + nixosConfigurations.default = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index f8c3291..7508f2c 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -79,6 +79,8 @@ in { # at this point just hire the goober project to take them down for you ''; + networking.hostName = "darkworld"; + powerManagement.enable = true; services.avahi = {