stylix: init module maintainers framework (#977)

Initialize module maintainers framework to streamline the future
population of module maintainers [1].

[1]: https://github.com/danth/stylix/issues/275

Link: https://github.com/danth/stylix/pull/977

Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
awwpotato 2025-03-14 11:29:51 -07:00 committed by GitHub
parent 52b1cc7247
commit e43eb4e2a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
86 changed files with 312 additions and 0 deletions

View file

@ -114,6 +114,34 @@ slow and should be avoided.
For everything else, like fonts and wallpapers, you can just take option values For everything else, like fonts and wallpapers, you can just take option values
directly from `config`. See the reference pages for a list of options. directly from `config`. See the reference pages for a list of options.
## Maintainers
New modules must have at least one maintainer defined in
`/modules/«module»/meta.nix`.
If you are not already listed in the Nixpkgs `/maintainers/maintainer-list.nix`
maintainer list, add yourself to `/stylix/maintainers.nix`.
Add yourself as a maintainer in one of the following ways, depending on the
number of maintainers:
- ```nix
{ lib, ... }:
{
maintainers = [ lib.maintainers.danth ];
}
```
- ```nix
{ lib, ... }:
{
maintainers = with lib.maintainers; [ danth naho ];
}
```
The main responsibility of module maintainers is to update and fix their
modules.
## Documentation ## Documentation
Documentation for options is automatically generated. To improve the quality Documentation for options is automatically generated. To improve the quality

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/avizo/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/bat/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/bemenu/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/bspwm/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/btop/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/cava/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/console/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/discord/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/dunst/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/emacs/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/eog/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/fcitx5/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/feh/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/firefox/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/fish/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/fnott/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/foot/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/forge/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/fuzzel/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/fzf/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/gedit/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/ghostty/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/gitui/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/glance/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/gnome/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/grub/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/gtk/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/halloy/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/helix/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/i3/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/k9s/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/kde/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/kitty/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/kmscon/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/lazygit/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/lightdm/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/mako/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/micro/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/mpv/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/ncspot/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/neovim/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/nixvim/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/nushell/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/nvf/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/qt/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/regreet/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/rio/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/river/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/rofi/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/sway/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/swaync/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/sxiv/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/tmux/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/tofi/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/vim/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/vscode/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/waybar/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/wayfire/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/wezterm/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/wob/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/wofi/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/wpaperd/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/xfce/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/yazi/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/zathura/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/zed/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

3
modules/zellij/meta.nix Normal file
View file

@ -0,0 +1,3 @@
{
maintainers = [ ];
}

8
stylix/maintainers.nix Normal file
View file

@ -0,0 +1,8 @@
# Stylix maintainers.
#
# This attribute set contains Stylix module maintainers that do
# not have an entry in the Nixpkgs maintainer list [1]. Entries here
# are expected to follow the same format as described in [1].
#
# [1]: https://github.com/NixOS/nixpkgs/blob/1da63e6cc622a0cb6fd5b86d49923e4eb1e33b70/maintainers/maintainer-list.nix
{ }

27
stylix/meta.nix Normal file
View file

@ -0,0 +1,27 @@
{
pkgs,
lib,
inputs,
...
}:
builtins.mapAttrs
(lib.concatMapAttrs (
path: kind:
lib.optionalAttrs (kind == "directory") {
${path} = "${inputs.self}/modules/${path}/meta.nix";
}
) (builtins.readDir "${inputs.self}/modules"))
(
_: value:
if (builtins.typeOf value == "lambda") then
(value {
inherit pkgs;
lib = pkgs.lib.extend (
_: prev: {
maintainers = lib.attrsets.unionOfDisjoint prev.maintainers (import ./maintainers.nix);
}
);
})
else
value
)