Skip to content
Discussion options

You must be logged in to vote

It is consumed like most other flake-parts modules, you import the flake module and then you utilize the exposed interface.

{
  inputs = {
    flake-parts.url = "flake-parts";
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
    home-manager = {
      url = "home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs =
    inputs:
    inputs.flake-parts.lib.mkFlake { inherit inputs; }: (
      { withSystem, ... }:
      {
        systems = [ "x86_64-linux" ];
        imports = [ inputs.home-manager.flakeModules.default ];

        flake = {
          homeModules = {
            module1 = {
              # home module config
            };
            module2

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@terlar
Comment options

terlar Jul 27, 2025
Collaborator

@gamemaster2b
Comment options

@terlar
Comment options

terlar Aug 27, 2025
Collaborator

@gamemaster2b
Comment options

@terlar
Comment options

terlar Aug 28, 2025
Collaborator

Answer selected by khaneliman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants