treewide: implement auto importing for modules

Reduce maintenance burden and increase efficiency by automatically
importing modules following a specific convention.

Co-authored-by: awwpotato <awwpotato@voidq.com>
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-06-20 14:39:55 -05:00
parent fefeb0e928
commit 4fca600cb1
461 changed files with 72 additions and 474 deletions

View file

@ -37,7 +37,7 @@ let
sectionsOrLines = types.either types.lines confSections;
accounts = import ./aerc-accounts.nix {
accounts = import ./accounts.nix {
inherit
config
pkgs

View file

@ -271,7 +271,7 @@ in
};
accounts.email.accounts = mkOption {
type = with types; attrsOf (submodule (import ./alot-accounts.nix pkgs));
type = with types; attrsOf (submodule (import ./accounts.nix pkgs));
};
};

View file

@ -120,7 +120,7 @@ in
};
accounts.email.accounts = mkOption {
type = with types; attrsOf (submodule (import ./astroid-accounts.nix));
type = with types; attrsOf (submodule (import ./accounts.nix));
};
};

View file

@ -11,7 +11,7 @@ let
moduleName = lib.concatStringsSep "." modulePath;
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
mkFirefoxModule = import ./mkFirefoxModule.nix;
in
{
meta.maintainers = [

View file

@ -7,7 +7,7 @@ let
cfg = config.programs.floorp;
mkFirefoxModule = import ./firefox/mkFirefoxModule.nix;
mkFirefoxModule = import ../firefox/mkFirefoxModule.nix;
in
{
meta.maintainers = [ lib.hm.maintainers.bricked ];

View file

@ -53,7 +53,7 @@ in
{
options = {
accounts.email.accounts = lib.mkOption {
type = with lib.types; attrsOf (submodule (import ./getmail-accounts.nix));
type = with lib.types; attrsOf (submodule (import ./accounts.nix));
};
};

Some files were not shown because too many files have changed in this diff Show more