From efb5edee396e54b3d1c0cbc41941fd8bc495ccce Mon Sep 17 00:00:00 2001 From: autumn-the-kitty-cat <147276465+autumn-the-kitty-cat@users.noreply.github.com> Date: Mon, 1 Dec 2025 17:57:52 -0500 Subject: [PATCH] feat: init --- flake.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fdab95d --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +# https://nixos.wiki/wiki/Creating_a_NixOS_live_CD +# Create with the command below. +# nix build .#nixosConfigurations.iso.config.system.build.isoImage + +{ + description = "Custom Minimal NixOS installation media"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + outputs = + { self, nixpkgs }: + { + nixosConfigurations = { + iso = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ( + { pkgs, modulesPath, ... }: + { + imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix") ]; + + networking.networkmanager.enable = true; + + environment.systemPackages = with pkgs; [ + neovim + git + nh + ]; + } + ) + ]; + }; + }; + }; +}