aboutsummaryrefslogtreecommitdiffstats
path: root/modules/vhack/mi
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-10-30 15:22:07 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:27:17 +0100
commit4834ad1ea13358f3f23e0139e3a8a3d1ccb804e2 (patch)
tree60b588b2d979bce6a6d19bd7acc0af05c90f12fd /modules/vhack/mi
parenttreewide: Various fixes (diff)
downloadnixos-server-4834ad1ea13358f3f23e0139e3a8a3d1ccb804e2.zip
modules: Rename back to `by-name`
There is no point in keeping just vhack here.
Diffstat (limited to 'modules/vhack/mi')
-rw-r--r--modules/vhack/mi/miniflux/module.nix55
1 files changed, 0 insertions, 55 deletions
diff --git a/modules/vhack/mi/miniflux/module.nix b/modules/vhack/mi/miniflux/module.nix
deleted file mode 100644
index 0075bca..0000000
--- a/modules/vhack/mi/miniflux/module.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- config,
- lib,
- ...
-}: let
- cfg = config.vhack.miniflux;
-in {
- options.vhack.miniflux = {
- enable = lib.mkEnableOption "miniflux, an simple web rss reading software";
- domain = lib.mkOption {
- type = lib.types.str;
- description = "The primary domain miniflux should be served on";
- };
- extraDomains = lib.mkOption {
- type = lib.types.listOf lib.types.str;
- description = "Additional domains to serve miniflux on";
- default = [];
- };
- adminCredentialsFile = lib.mkOption {
- type = lib.types.path;
- description = "The age encrypted admin credentials file passed to agenix";
- };
- };
- config = lib.mkIf cfg.enable {
- age.secrets = {
- minifluxAdmin = {
- file = cfg.adminCredentialsFile;
- mode = "700";
- owner = "root";
- group = "root";
- };
- };
- services.miniflux = {
- enable = true;
- config = {
- LISTEN_ADDR = "127.0.0.1:5892";
- };
- adminCredentialsFile = config.age.secrets.minifluxAdmin.path;
- };
-
- vhack = {
- nginx.enable = true;
- postgresql.enable = true;
- };
- services.nginx = {
- virtualHosts.${cfg.domain} = {
- locations."/".proxyPass = "http://${config.services.miniflux.config.LISTEN_ADDR}";
-
- enableACME = true;
- forceSSL = true;
- serverAliases = cfg.extraDomains;
- };
- };
- };
-}