NixOS / NixOS/nix

Allow nested apps

Open
#7,136 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
17.7k
Forks
2k
Avg merge
1d 16h
Merged PRs (30d)
80

Description

Is your feature request related to a problem? Please describe.
Currently, if you create a nested set of apps in the flake schema, nix run will not permit it, it will fail with error: not an app definition.

Describe the solution you'd like
I would like apps to be able to be nested.

Describe alternatives you've considered
Not nesting the sets of apps I want to provide as part of a flake, but instead separating them with a hyphen, app-1-set1 app-2-set1.

Additional context
https://github.com/MatthewCroughan/nixinate/issues/12
https://github.com/NixOS/nix/issues/6381#issuecomment-1094264884

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the nix run handling of flake apps and reproduce the not an app definition error with a nested app set. Use the linked context for expected behavior; done means valid nested apps are accepted and the existing flattened naming workaround is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.