bahaghari: restructure module entrypoint

At least it doesn't need additional setup anymore.
This commit is contained in:
Gabriel Arazas 2024-02-25 17:21:57 +08:00
parent b74d53ed09
commit bbba0e5bba
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 28 additions and 6 deletions

View File

@ -2,16 +2,19 @@
{ }:
{
nixosModules = {
"bahaghari/tinted-theming" = ./modules/tinted-theming;
nixosModules = rec {
bahaghari = ./modules;
default = bahaghari;
};
homeModules = {
"bahaghari/tinted-theming" = ./modules/tinted-theming;
homeModules.bahaghari = rec {
bahaghari = ./modules;
default = bahaghari;
};
nixvimModules = {
"bahaghari/tinted-theming" = ./modules/tinted-theming;
nixvimModules = rec {
bahaghari = ./modules;
default = bahaghari;
};
bahaghariLib = ./lib;

View File

@ -0,0 +1,6 @@
{
imports = [
./tinted-theming
./extra-arguments.nix
];
}

View 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; };
};
}