diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-09 14:03:59 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-03-09 21:51:20 +0100 |
commit | 84f2c1523da796aa17c04d48362acee509cd907d (patch) | |
tree | e23837b8b4cd1d0e733f2370a1d56fbef2e03b47 | |
parent | 4602b8aa1ccc761af2b0843d6df9732ce9870f19 (diff) |
feat(tente): add osm-proposals
-rw-r--r-- | nixos/hosts/tente/default.nix | 17 | ||||
-rw-r--r-- | nixos/npins/sources.json | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix index c2b6491..939fc9a 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -6,6 +6,8 @@ let domain = "push-f.com"; acmeEmail = "martin@push-f.com"; + sources = import ../../npins; + helpers = import <top/helpers.nix>; in { config, lib, pkgs, ... }: @@ -18,6 +20,7 @@ in ./git.nix ./headscale.nix ./matrix.nix + "${sources.my-osm-proposals}/service.nix" ]; web-personal.domain = domain; @@ -27,6 +30,20 @@ in matrix.serverName = domain; matrix.apiDomain = "matrix.${domain}"; + services.osm_proposals = + let + subdomain = "osm-proposals.${domain}"; + in + { + enable = true; + virtualHost = subdomain; + nginx = { + enableACME = true; + forceSSL = true; + extraConfig = helpers.mkNginxConfig subdomain; + }; + }; + headscale.port = 8080; matrix.port = 8008; diff --git a/nixos/npins/sources.json b/nixos/npins/sources.json index 145e7e5..1a4145c 100644 --- a/nixos/npins/sources.json +++ b/nixos/npins/sources.json @@ -15,6 +15,17 @@ "url": "https://api.github.com/repos/ryantm/agenix/tarball/0.15.0", "hash": "01dhrghwa7zw93cybvx4gnrskqk97b004nfxgsys0736823956la" }, + "my-osm-proposals": { + "type": "Git", + "repository": { + "type": "Git", + "url": "https://git.push-f.com/osm-proposals" + }, + "branch": "master", + "revision": "232f1499bb9a2cc85a63abcc1c22776ef77781fb", + "url": null, + "hash": "0g40fzpnrpcaxj6m19fbgwh5x11sbi1h037q5av4x5z7ifxg2dpy" + }, "nixos": { "type": "Channel", "name": "nixos-24.11", |