flake-parts/setups: update shared options as a proper alias

This commit is contained in:
Gabriel Arazas 2024-06-13 13:10:45 +08:00
parent 0d5f903610
commit b325840b4a
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 6 additions and 6 deletions

View File

@ -20,9 +20,9 @@ in
# with the home-manager flake-parts module where it also shares the Nix
# configuration submodule. Without this option, it would not work (or we
# could just rename the options from the home-manager module).
options.homeManagerBranch = options.home-manager.branch // {
default = config.home-manager.branch;
};
imports = [
(lib.mkAliasOptionModule [ "homeManagerBranch" ] [ "home-manager" "branch" ])
];
options.home-manager = {
branch = lib.mkOption {

View File

@ -3,9 +3,9 @@
{
# A compatibility option while the newer iteration of configuring nixpkgs
# inside our internal flake-parts module is in progress.
options.nixpkgsBranch = options.nixpkgs.branch // {
default = config.nixpkgs.branch;
};
imports = [
(lib.mkAliasOptionModule [ "nixpkgsBranch" ] [ "nixpkgs" "branch" ])
];
options.nixpkgs = {
branch = lib.mkOption {