compose2nix icon indicating copy to clipboard operation
compose2nix copied to clipboard

Generate separate Nix modules in a directory

Open aksiksi opened this issue 11 months ago • 0 comments

This behavior would be controlled by a flag with default = false.

Directory structure:

$ ls
service-a.nix
service-b.nix
volumes.nix
networks.nix
default.nix

Where default.nix looks something like this:

{ ... }:

{
  imports = [
    ./service-a.nix
    ./service-b.nix
    ./volumes.nix
    ./networks.nix
  ];

  # Preamble.
  
  # Root target.
}

aksiksi avatar Mar 17 '24 12:03 aksiksi