Convert to flake, remove old channel-based build files
Replace nix-build scripts and standalone ISO configs with a flake.nix pinned to nixos-25.11. Build with `nix build .#minimal-iso` or `nix build .#graphical-iso`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2360f5b2d6
commit
807d15f1ec
5 changed files with 38 additions and 28 deletions
38
flake.nix
Normal file
38
flake.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
description = "Custom NixOS ISO images";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }: let
|
||||
system = "x86_64-linux";
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
graphical-iso = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix"
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
||||
./common.nix
|
||||
];
|
||||
};
|
||||
|
||||
minimal-iso = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
||||
"${nixpkgs}/nixos/modules/installer/cd-dvd/channel.nix"
|
||||
./common.nix
|
||||
{ isoImage.forceTextMode = true; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
packages.${system} = {
|
||||
graphical-iso = self.nixosConfigurations.graphical-iso.config.system.build.isoImage;
|
||||
minimal-iso = self.nixosConfigurations.minimal-iso.config.system.build.isoImage;
|
||||
default = self.packages.${system}.minimal-iso;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
# from https://nixos.wiki/wiki/Creating_a_NixOS_live_CD
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix>
|
||||
|
||||
# Provide an initial copy of the NixOS channel so that the user
|
||||
# doesn't need to run "nix-channel --update" first.
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||
./common.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#from https://nixos.wiki/wiki/Creating_a_NixOS_live_CD
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
|
||||
|
||||
# Provide an initial copy of the NixOS channel so that the user
|
||||
# doesn't need to run "nix-channel --update" first.
|
||||
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
||||
./common.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=graphical-iso.nix
|
||||
|
|
@ -1 +0,0 @@
|
|||
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=minimal-iso.nix
|
||||
Loading…
Add table
Add a link
Reference in a new issue