Skip to content

Commit 36bf11c

Browse files
committed
chore(treewide): clean up tests layout, fix package buckets, add missing maintainers
1 parent 70ae1d3 commit 36bf11c

20 files changed

Lines changed: 32 additions & 12 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
./modules/flake/checks.nix
3737
];
3838

39-
debug = true;
39+
debug = false;
4040

4141
perSystem =
4242
{

modules/flake/checks.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,7 @@
160160
in
161161
{
162162
checks = lib.optionalAttrs enabled (
163-
nixosChecks
164-
// homeManagerChecks
165-
// lib.optionalAttrs (nixosChecks ? module-nixos-services-grimmory-setup) {
166-
# Backwards-compatible name from the old ad-hoc Grimmory VM check.
167-
grimmory-nixos = nixosChecks.module-nixos-services-grimmory-setup;
168-
}
163+
nixosChecks // homeManagerChecks
169164
);
170165
};
171166
}

modules/home-manager/programs/waterfox/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ let
1515
mkFirefoxModule = import "${inputs.home-manager}/modules/programs/firefox/mkFirefoxModule.nix";
1616
in
1717
{
18+
meta.maintainers = [ "74k1" ];
19+
1820
imports = [
1921
(mkFirefoxModule {
2022
inherit modulePath;

modules/nixos/services/brscan-skey/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ let
2929
'';
3030
in
3131
{
32+
meta.maintainers = [ "74k1" ];
33+
3234
options.services.brscan-skey = {
3335
enable = mkEnableOption "Brother scan-key-tool daemon";
3436

modules/nixos/services/fourget/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ let
181181
"${pkgs.path}/nixos/modules/services/web-servers/nginx/vhost-options.nix";
182182
in
183183
{
184+
meta.maintainers = [ "74k1" ];
185+
184186
options.services.fourget = {
185187
enable = mkEnableOption "4get";
186188

modules/nixos/services/grimmory/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ let
9898
'';
9999
in
100100
{
101+
meta.maintainers = [ "74k1" ];
102+
101103
options.services.grimmory = {
102104
enable = mkEnableOption "Grimmory, a self-hosted digital library";
103105

modules/nixos/services/mc-gate/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ let
1717
'';
1818
in
1919
{
20+
meta.maintainers = [ "74k1" ];
21+
2022
options.services.mc-gate = {
2123
enable = lib.mkEnableOption "Gate Service";
2224
config = lib.mkOption {

modules/nixos/services/multi-scrobbler/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ let
223223
'';
224224
in
225225
{
226+
meta.maintainers = [ "74k1" ];
227+
226228
options.services.multi-scrobbler = {
227229
enable = lib.mkEnableOption "multi-scrobbler service";
228230

modules/tests/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22

33
Tests are discovered recursively from:
44

5-
- `modules/tests/nixos/<module-path>/<test>.nix`
5+
- `modules/tests/nixos/<category>/<module-path>/<test>.nix`
66
- `modules/tests/home-manager/<module-path>/<test>.nix`
77

8-
The `<module-path>` mirrors the exported module key, for example
9-
`modules/tests/nixos/services/grimmory/setup.nix` tests
8+
For NixOS, `<category>` is either `services` (for `services.*` module tests)
9+
or `pkgs` (for package-level integration tests that don't correspond to a
10+
module). The `<module-path>` mirrors the exported module key, for example
11+
`modules/tests/nixos/services/grimmory/basic.nix` tests
1012
`nixosModules."services/grimmory"`.
1113

1214
Generated check names use the path:
1315

1416
```sh
15-
nix build .#checks.x86_64-linux.module-nixos-services-grimmory-setup
17+
nix build .#checks.x86_64-linux.module-nixos-services-grimmory-basic
1618
nix build .#checks.x86_64-linux.module-home-manager-programs-waterfox-basic
1719
```
1820

File renamed without changes.

0 commit comments

Comments
 (0)