Flake.lock mgmt - nested flakes

Hi there,

QQ,

I have built out a flake (exposing optoins) that is just my hyprland config (calling that hyprflake), but also all the parts that “make up” a full desktop. I then comsume that in my main flake (via github) and do all of my system and application config there.

Now within the hyrpflake, it too has an iput for a purpose built package that is also consumed from github via a flake. In fact, hyprflake has a number of inputs for items such as home manager, stylix, my custom package.

Now:

  • Do you have to maage the flake.lock independantly in each repo for each flake to tryely update everything?
  • Ultimately I would like hyprflake be accessible to anyone who wanted to use it, but how do you need to build it and any other subflakes can be updated by an end user who may not have direct access to hyprflake and sub flake source repos?

main flake ← hyprflake ← custom package flake, home manager flake, stylix flake, etc

How is best to structure and update all flake.lcok files? Accounthing that a user may only have access to “main flake”, but not the other two flakes to update inputs?
Cheers.