From 48b18aa671b9c2f256f08f52e36c4f47c09db419 Mon Sep 17 00:00:00 2001 From: Polen Date: Thu, 3 Oct 2024 00:14:36 -0400 Subject: [PATCH] building my love an iso --- flake.nix | 22 +++++++++++++++------- iso/sl1_cath.nix | 7 +++++++ 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 iso/sl1_cath.nix diff --git a/flake.nix b/flake.nix index a0018bc..809e905 100644 --- a/flake.nix +++ b/flake.nix @@ -7,12 +7,20 @@ outputs = { nixpkgs, ... }@inputs: { - nixosConfigurations.default = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs;}; - system = "x86_64-linux"; - modules = [ - ./configuration.nix - ]; - }; + nixosConfigurations = { + default = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs;}; + system = "x86_64-linux"; + modules = [ + ./configuration.nix + ]; + }; + }; + iso_cath = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs;}; + modules = [ + ./iso/sl1_cath.nix + ]; + }; }; } diff --git a/iso/sl1_cath.nix b/iso/sl1_cath.nix new file mode 100644 index 0000000..bfebd18 --- /dev/null +++ b/iso/sl1_cath.nix @@ -0,0 +1,7 @@ +{ pkgs, modulesPath, ... }: { + import = [ + "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" + ]; + + nixpkgs.hostPlatform = "x86_64-linux"; +}