@@ -111,10 +111,12 @@
113 # The curated tool set baked into the image. Drop a `container.nix`
113 # The curated tool set baked into the image. Drop a `container.nix`
114− # (`pkgs: [ ... ]`) next to where you run `c init` to replace this with
114+ # (`{ pkgs, nur }: [ ... ]`) next to where you run `c init` to replace
115− # your own list — see README.
115+ # this with your own list — see README.
116 defaultPackages =
116 defaultPackages =
117− pkgs: with pkgs; [
118+ with pkgs;
118 bashInteractive
120 bashInteractive
@@ -124,7 +126,7 @@
127− nurPkgs.repos.charmbracelet.crush
129+ nur.repos.charmbracelet.crush
129 # LLM tools
131 # LLM tools
@@ -156,9 +158,10 @@
156 gcc # provides cc/gcc; pulls in binutils (ld) via its closure
158 gcc # provides cc/gcc; pulls in binutils (ld) via its closure
159− # Build the OCI image from a `pkgs: [ ... ]` package function. The fish
161+ # Build the OCI image from a `{ pkgs, nur }: [ ... ]` package function.
160− # prompt config is always added; the default `cmd` is /bin/fish, so a
162+ # The fish prompt config is always added; the default `cmd` is
161− # custom package set should include `fish` (or change `config.cmd`).
163+ # /bin/fish, so a custom package set should include `fish` (or change
162 mkImage =
165 mkImage =
163 packages:
166 packages:
164 n2c.buildImage {
167 n2c.buildImage {
@@ -169,7 +172,10 @@
169 # A plain, single-process root filesystem. No NixOS, no systemd.
172 # A plain, single-process root filesystem. No NixOS, no systemd.
170 copyToRoot = pkgsLinux.buildEnv {
173 copyToRoot = pkgsLinux.buildEnv {
171 name = "root";
174 name = "root";
172− paths = packages pkgsLinux ++ [ fishRoot ];
175+ paths = packages {
173 pathsToLink = [
179 pathsToLink = [
@@ -222,7 +228,7 @@
223 inherit mkImage;
229 inherit mkImage;
224 # skopeo copy app (`skopeo copy nix:<image> "$@"`) for an image built
230 # skopeo copy app (`skopeo copy nix:<image> "$@"`) for an image built
225− # from a `pkgs: [ ... ]` function.
231+ # from a `{ pkgs, nur }: [ ... ]` function.
226 copyWith = packages: (mkImage packages).copyTo;
232 copyWith = packages: (mkImage packages).copyTo;