mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-13 18:19:00 +00:00
flake-parts/setups: update shared options as a proper alias
This commit is contained in:
parent
0d5f903610
commit
b325840b4a
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user