Skip to content

Commit fe7d85f

Browse files
Merge pull request #335 from NuschtOS/fix-conditions
Fix conditions, better readme, cleanup Synapse Admin
2 parents 6fdc98f + e9d7abc commit fe7d85f

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,40 @@
33
Collection of opinionated, integrated and shared NixOS modules.
44

55
This includes features like:
6-
- Backend independent LDAP/OAuth2 abstraction with service integration
7-
- Easy Postgres upgrades between major versions and installation of `pg_stat_statements` extension in all databases
8-
- Easy integration of Matrix Synapse, Element Web and extra Oembed providers
9-
- Configure extra dependencies in Nextcloud for the Recognize and Memories Apps and properly setup preview generation
10-
- Restricted nix remote builders which can only execute remote builds
6+
- Backend independent LDAP/OAuth2 abstraction with service integration (see table below)
117
- More opinionated integrations on top of Portunus (Simple LDAP frontend), dex and oauth2-proxy
8+
- Easy Postgres upgrades between major versions, easy installation of extensions including `pg_stat_statements` and timer for pg_repack
9+
- Higher level configuration of Blackbox exporter's dnsProbes and httpProbes for Prometheus
10+
- Easy integration of Matrix Synapse, Element Web, Synapse Admin by etkecc and extra Oembed providers
11+
- Check if network kernel modules could be missing in initrd and deterministic luks unlock order
12+
- Extra options for Nginx like a common server/locations block, quic, default 404 server, aws-lc tls library, tcp fast open and more
13+
- Configure Nextcloud Apps Memories Apps and properly setup efficient preview generation
14+
- Predone Nginx config for Minio console and object storage (S3)
15+
- Restricted nix remote builders which can only execute remote builds
1216

1317
and many smaller integrations like:
1418

1519
- git-delta
1620
- Harmonia Nginx
17-
- Intel hardware acceleration
1821
- Mailman PostgreSQL
1922
- Nginx TCP fast open
23+
- Mastodon Bird UI patch
24+
- Hostname check (borrowed from srvos as module)
2025
- Nix diff system on activation and dry-activation
21-
- easy configuration of HTTP/HTTPS targets in Prometheus blackbox exporter
2226
- Vaultwarden Nginx and Postgres
27+
- Strace color patch
2328
- ... and much more!
2429

30+
## LDPA & OAuth service support
31+
32+
| Name | LDAP | OAuth |
33+
|-------|------|-------|
34+
| Gitea |||
35+
| Grafana |||
36+
| Hedgedoc |||
37+
| Home-Assistant |||
38+
| Mastodon |||
39+
2540
## Usage
2641

2742
Add or merge the following settings to your `flake.nix`:

modules/matrix.nix

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,9 @@ in
5454
};
5555

5656
synapse-admin = {
57-
enable = lib.mkEnableOption "" // { description = "Whether to configure synapse-admin to be served at the matrix servers domain under the /admin path."; };
57+
enable = lib.mkEnableOption "" // { description = "Whether to configure Synapse Admin by etkecc to be served at the matrix servers domain under the /admin path."; };
5858

59-
package = lib.mkPackageOption pkgs "synapse-admin" { } // {
60-
# TODO: remove after 25.05
61-
default = pkgs.synapse-admin-etkecc or pkgs.synapse-admin;
62-
example = "pkgs.synapse-admin-etkecc";
63-
extraDescription = "If synapse-admin-etkecc exists, that is the default, otherwise synapse-admin.";
64-
};
59+
package = lib.mkPackageOption pkgs "synapse-admin-etkecc" { };
6560
};
6661

6762
recommendedDefaults = libS.mkOpinionatedOption "set recommended and secure default settings";

modules/renovate.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ in
1111
};
1212

1313
config = lib.mkIf cfg.enable {
14-
services.renovate.settings = {
14+
services.renovate.settings = lib.mkIf cfg.recommendedDefaults {
1515
cachePrivatePackages = true;
1616
configMigration = true;
1717
optimizeForDisabled = true;

0 commit comments

Comments
 (0)