mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +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 = {
|
||||
"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;
|
||||
|
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