From 7092485a6c9a6b87369dca4d22277f6eb82e68cb Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Fri, 1 Nov 2024 14:13:56 -0700 Subject: Add custom x86-64 NixOS ISO system --- flake.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 4bd26e6..7f94a22 100644 --- a/flake.nix +++ b/flake.nix @@ -88,6 +88,22 @@ ]; }; + # from https://nixos.wiki/wiki/Creating_a_NixOS_live_CD and https://chengeric.com/homelab/ + iso = nixpkgs.lib.nixosSystem { + modules = [ + "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" + ({ + #isoImage.squashfsCompression = "gzip -Xcompression-level 1"; + users.users.nixos = { + openssh.authorizedKeys.keys = [ + (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) + ]; + }; + }) + ]; + system = "x86_64-linux"; + }; + kaitain = nixpkgs.lib.nixosSystem rec { specialArgs = { inherit inputs outputs; }; modules = [ -- cgit v1.2.3