diff --git a/flake.nix b/flake.nix index 049b7283..c67f61b2 100644 --- a/flake.nix +++ b/flake.nix @@ -84,6 +84,12 @@ specialArgs.nix-config = self; modules = listFilesRecursive ./hosts/phone; }; + + iso = nixosSystem { + system = "x86_64-linux"; + specialArgs.nix-config = self; + modules = listFilesRecursive ./hosts/iso; + }; }; formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); diff --git a/hosts/iso/configuration.nix b/hosts/iso/configuration.nix new file mode 100644 index 00000000..f2d36d89 --- /dev/null +++ b/hosts/iso/configuration.nix @@ -0,0 +1,13 @@ +{ pkgs, modulesPath, ... }: + +{ + imports = [ + (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") + ]; + + environment.systemPackages = with pkgs; [ + neovim + ]; + + isoImage.squashfsCompression = "gzip -Xcompression-level 1"; +}