mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-15 06: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
|
# with the home-manager flake-parts module where it also shares the Nix
|
||||||
# configuration submodule. Without this option, it would not work (or we
|
# configuration submodule. Without this option, it would not work (or we
|
||||||
# could just rename the options from the home-manager module).
|
# could just rename the options from the home-manager module).
|
||||||
options.homeManagerBranch = options.home-manager.branch // {
|
imports = [
|
||||||
default = config.home-manager.branch;
|
(lib.mkAliasOptionModule [ "homeManagerBranch" ] [ "home-manager" "branch" ])
|
||||||
};
|
];
|
||||||
|
|
||||||
options.home-manager = {
|
options.home-manager = {
|
||||||
branch = lib.mkOption {
|
branch = lib.mkOption {
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
{
|
{
|
||||||
# A compatibility option while the newer iteration of configuring nixpkgs
|
# A compatibility option while the newer iteration of configuring nixpkgs
|
||||||
# inside our internal flake-parts module is in progress.
|
# inside our internal flake-parts module is in progress.
|
||||||
options.nixpkgsBranch = options.nixpkgs.branch // {
|
imports = [
|
||||||
default = config.nixpkgs.branch;
|
(lib.mkAliasOptionModule [ "nixpkgsBranch" ] [ "nixpkgs" "branch" ])
|
||||||
};
|
];
|
||||||
|
|
||||||
options.nixpkgs = {
|
options.nixpkgs = {
|
||||||
branch = lib.mkOption {
|
branch = lib.mkOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user