42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
# https://nixos.wiki/wiki/Creating_a_NixOS_live_CD
|
|
# Create with the command below.
|
|
# nix build .#nixosConfigurations.iso.config.system.build.isoImage
|
|
|
|
{
|
|
description = "Custom Minimal NixOS installation media";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
{
|
|
nixosConfigurations = {
|
|
iso = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
(
|
|
{ pkgs, modulesPath, ... }:
|
|
{
|
|
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ];
|
|
|
|
networking.wireless.enable = nixpkgs.lib.mkForce false;
|
|
networking.networkmanager.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
neovim
|
|
git
|
|
];
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
console.useXkbConfig = true;
|
|
|
|
services.xserver.xkb.layout = "us";
|
|
|
|
# Comment out this line if you want to use qwerty
|
|
services.xserver.xkb.variant = "colemak";
|
|
}
|
|
)
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|