_module.args bad
This commit is contained in:
parent
efb5d45317
commit
da3f97b80d
profiles/http
default.nix
docs
index
services
attic.nixcensordodge.nixcinny.nixconvos.nixcryptpad.nixelement.nixflexget.nixgalene.nixgitea.nixgraphana.nixhedgedoc.nixhome-assistant.nixhydra.nixinvidious.nixjellyfin.nixjitsi-meet.nixkukkee.nixmatrix-synapse.nixmattermost.nixnavidrome.nixnetdata.nixnitter.nixntopng.nixopenspeedtest.nixowncast.nixpaperless.nixplex.nixpolaris.nixredlib.nixresilio.nixroundcube.nixshlink.nixsnappymail.nixsourcegraph.nixstickers.nixtautulli.nixthelounge.nix
trivial-gradios
vaultwarden.nixwebdav-zotero.nixsites
@ -1,17 +1,25 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
mkDomain = subname: "${subname}.${config.networking.fqdn}";
|
||||
inherit (config.pbsds.nginx) mkDomain allSubdomains;
|
||||
in
|
||||
{
|
||||
# TODO: make these into nixos options with readonly=true
|
||||
_module.args.mkDomain = mkDomain;
|
||||
_module.args.allSubdomains = lib.pipe config.services.nginx.virtualHosts [
|
||||
options.pbsds.nginx.mkDomain = lib.mkOption {
|
||||
visible = false; internal = true; readOnly = true;
|
||||
default = subname: "${subname}.${config.networking.fqdn}";
|
||||
};
|
||||
options.pbsds.nginx.allSubdomains = lib.mkOption {
|
||||
visible = false; internal = true; readOnly = true;
|
||||
default = lib.pipe config.services.nginx.virtualHosts [
|
||||
#(lib.mapAttrsToList (domain: vhost: [ domain ] ++ vhost.serverAliases))
|
||||
(lib.mapAttrsToList (domain: vhost: [ domain ]))
|
||||
lib.flatten
|
||||
(builtins.filter (domain: domain != "" && domain != "_"))
|
||||
(lib.sort (x: y: x<y))
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
config = {
|
||||
|
||||
security.acme.acceptTerms = true;
|
||||
security.acme.defaults.email = "pbsds+acme@hotmail.com"; # TODO: parametrize per host
|
||||
@ -107,5 +115,5 @@ in
|
||||
#};
|
||||
/**/
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
|
@ -1,6 +1,8 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
|
||||
cfg = config.services.docs-to-host;
|
||||
|
||||
# https://pagefind.app/docs/ui-usage/
|
||||
|
@ -1,5 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, allSubdomains, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain allSubdomains;
|
||||
|
||||
# TODO: support fully qualified urls as well
|
||||
# `null` means filter
|
||||
customDescriptions = rec {
|
||||
|
@ -1,4 +1,8 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
|
||||
# attic - multi-tenant nix binary cache
|
||||
# https://docs.attic.rs/tutorial.html
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# CensorDodge
|
||||
# A lightweight and customisable web proxy
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
|
||||
lib.mkIf pkgs.unstable.cinny.meta.available # no CVE's thank you
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Convos
|
||||
# The simplest way to use IRC in your browser
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
|
||||
# Cryptpad
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Element-web
|
||||
# A glossy Matrix collaboration client for the web
|
||||
|
@ -3,7 +3,7 @@ let
|
||||
cfg = config.services.flexget;
|
||||
in
|
||||
|
||||
# TODO: run in VM mode if we run transmission in the same VM
|
||||
# TODO: run in build-vm mode if we run transmission in the same machine
|
||||
lib.mkIf (!config.virtualisation.isVmVariant)
|
||||
|
||||
{
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Galene
|
||||
# Videoconferencing server that is easy to deploy, written in Go
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Gitea
|
||||
# Git with a cup of tea
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Graphana
|
||||
# Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# hedgedoc
|
||||
# Realtime collaborative markdown notes on all platforms
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
|
||||
# home-assistant
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Hydra
|
||||
# Nix-based continuous build system
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, mkDomain, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Invidious
|
||||
# An open source alternative front-end to YouTube
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, mkDomain, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
|
||||
# don't mount if local VM
|
||||
lib.mkIf (!config.virtualisation.isVmVariant)
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Jitsi meet
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Kukkee
|
||||
# Self-hosted Doodle alternative: a meeting poll tool
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# matrix-synapse
|
||||
/**/
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Mattermost
|
||||
# Open-source, self-hosted Slack-alternative
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
|
||||
# don't mount if local VM
|
||||
lib.mkIf (!config.virtualisation.isVmVariant)
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Netdata
|
||||
# Real-time performance monitoring tool
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Nitter
|
||||
# Alternative Twitter front-end
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# ntopng
|
||||
# High-speed web-based traffic analysis and flow collection tool
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# OpenSpeedtTest
|
||||
# Pure HTML5 Network Performance Estimation Tool
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
|
||||
# OwnCast
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# paperless-ngx
|
||||
# A supercharged version of paperless: scan, index, and archive all of your physical documents
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, mkDomain, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
|
||||
# don't mount if local VM
|
||||
lib.mkIf (!config.virtualisation.isVmVariant)
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Polaris
|
||||
# Self-host your music collection, and access it from any computer and mobile device
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# redlib, previously libreddit
|
||||
# Private front-end for Reddit
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
|
||||
# don't mount if local VM
|
||||
lib.mkIf (!config.virtualisation.isVmVariant)
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Roundcube
|
||||
# Open Source Webmail Software
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Shlink
|
||||
# URL shortener with REST API and command line interface
|
||||
|
@ -1,7 +1,8 @@
|
||||
# adapted from https://github.com/samrose/dotfiles-1/blob/8887ca3b01edecd83c2e95f01e42885ce26f76c5/nixos/eve/modules/snappymail.nix#L55
|
||||
{ pkgs, config, lib, mkDomain, ... }:
|
||||
|
||||
{ pkgs, config, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
|
||||
maxUploadSize = "256M";
|
||||
toKeyValue = lib.generators.toKeyValue {
|
||||
mkKeyValue = lib.generators.mkKeyValueDefault {} " = ";
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# Sourcegraph
|
||||
# Understand, fix, and automate across your codebase with this code intelligence platform
|
||||
|
@ -1,6 +1,9 @@
|
||||
{ config, lib, mkDomain, inputs, ... }:
|
||||
{ config, lib, inputs, ... }:
|
||||
|
||||
let
|
||||
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
|
||||
myStickerPicker = inputs.maunium-stickerpicker-nix.createStickerPicker {
|
||||
#homeserver = "https://matrix.pvv.ntnu.no";
|
||||
#userId = "@stickerbot:my.matrix.server";
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, mkDomain, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
|
||||
# plex admin web ui
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# thelunge
|
||||
# The self-hosted Web IRC client
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# trivial gradios
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# vaultwarden
|
||||
# Unofficial Bitwarden compatible server written in Rust
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
|
||||
# webdav
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
services.nginx.virtualHosts."kuklef.se" = {
|
||||
forceSSL = true; # addSSL = true;
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, mkDomain, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# links.pbsds.net
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, mkDomain, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# refleksjon.no
|
||||
|
||||
|
@ -1,4 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, mkDomain, ... }:
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (config.pbsds.nginx) mkDomain;
|
||||
in
|
||||
{
|
||||
# roroslyd.no
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user