mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 00:18:59 +00:00
bahaghari: restructure module entrypoint
At least it doesn't need additional setup anymore.
This commit is contained in:
parent
b74d53ed09
commit
bbba0e5bba
@ -2,16 +2,19 @@
|
|||||||
{ }:
|
{ }:
|
||||||
|
|
||||||
{
|
{
|
||||||
nixosModules = {
|
nixosModules = rec {
|
||||||
"bahaghari/tinted-theming" = ./modules/tinted-theming;
|
bahaghari = ./modules;
|
||||||
|
default = bahaghari;
|
||||||
};
|
};
|
||||||
|
|
||||||
homeModules = {
|
homeModules.bahaghari = rec {
|
||||||
"bahaghari/tinted-theming" = ./modules/tinted-theming;
|
bahaghari = ./modules;
|
||||||
|
default = bahaghari;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixvimModules = {
|
nixvimModules = rec {
|
||||||
"bahaghari/tinted-theming" = ./modules/tinted-theming;
|
bahaghari = ./modules;
|
||||||
|
default = bahaghari;
|
||||||
};
|
};
|
||||||
|
|
||||||
bahaghariLib = ./lib;
|
bahaghariLib = ./lib;
|
||||||
|
6
subprojects/bahaghari/modules/default.nix
Normal file
6
subprojects/bahaghari/modules/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./tinted-theming
|
||||||
|
./extra-arguments.nix
|
||||||
|
];
|
||||||
|
}
|
13
subprojects/bahaghari/modules/extra-arguments.nix
Normal file
13
subprojects/bahaghari/modules/extra-arguments.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
bahaghariLib = import ../lib { inherit pkgs; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# Setting the Bahaghari lib and extra utilities. The extra utilities are
|
||||||
|
# largely based from the `utils` module argument found in NixOS systems.
|
||||||
|
_module.args = {
|
||||||
|
inherit bahaghariLib;
|
||||||
|
bahaghariUtils = import ../lib/utils { inherit config pkgs lib bahaghariLib; };
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user