flake-module: add flake-parts module (#5229)

Add a flake-parts module, output as flakeModules.home-manager and flakeModules.default.

The module defines options for flake.homeModules and flake.homeConfigurations, based on the respective nixos equivalents; flake.nixosModules and flake.nixosConfigurations.
This commit is contained in:
Matt Sturgeon
2025-01-30 18:17:53 +00:00
committed by GitHub
parent 7a45774684
commit a5e196d61f
4 changed files with 78 additions and 0 deletions

View File

@@ -19,6 +19,11 @@
# unofficial; deprecated in Nix 2.8
darwinModule = self.darwinModules.default;
flakeModules = rec {
home-manager = import ./flake-module.nix;
default = home-manager;
};
templates = {
standalone = {
path = ./templates/standalone;