Add flake-parts module (#1670)
Some checks failed
Test / test-stable (push) Has been cancelled
Test / install-against-stable (push) Has been cancelled
Test / install-flake (push) Has been cancelled
Update website / Build (push) Has been cancelled
Update website / Deploy (push) Has been cancelled

This commit is contained in:
Michael Hoang 2026-01-06 16:55:03 +00:00 committed by GitHub
commit 9f48ffaca1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

11
flake-module.nix Normal file
View file

@ -0,0 +1,11 @@
{
lib,
...
}:
{
options.flake.darwinConfigurations = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.raw;
default = { };
description = "Darwin system configurations";
};
}

View file

@ -56,6 +56,8 @@
darwin-uninstaller = prev.callPackage ./pkgs/darwin-uninstaller { };
};
flakeModules.default = ./flake-module.nix;
darwinModules.hydra = ./modules/examples/hydra.nix;
darwinModules.lnl = ./modules/examples/lnl.nix;
darwinModules.simple = ./modules/examples/simple.nix;