From cf31e0006d1547572312370b5dd3930b04e6f1a5 Mon Sep 17 00:00:00 2001 From: Whovian9369 Date: Mon, 10 Jun 2024 05:51:18 -0400 Subject: [PATCH] Add notes about building configs without `nixos-rebuild` --- flake.nix | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 7e9812f..6963c77 100644 --- a/flake.nix +++ b/flake.nix @@ -102,6 +102,18 @@ in { + # Notes + /* + $ nix build .#nixosConfigurations..config.system.build.toplevel + should let me build the system config without calling "nixos-rebuild" + + How to build ISO: + Building .#nixosConfigurations.isoimage-pc.config.system.build.isoImage + should build ISO to "result" (or other set) symlink. + Alternatively, use: + - nix build -L .#packages.x86_64-linux.build_isoimage-pc + - nix build -L .#build_isoimage-pc + */ nixosConfigurations = { nixos-wsl = nixpkgs.lib.nixosSystem { @@ -160,14 +172,18 @@ }; isoimage-pc = nixpkgs.lib.nixosSystem { - # How to build: - # $ nix build .#nixosConfigurations.isoimage-pc.config.system.build.isoImage - # TODO: Add to "packages.x86_64-linux" later? - # "packages.x86_64-linux.isoimage-pc = self." system = "x86_64-linux"; modules = [ "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix" { + /* + + isoImage = { + # Placeholder + }; + + */ + environment.systemPackages = [ pkgs._7zz pkgs.bat