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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue