summaryrefslogtreecommitdiff
path: root/chaski/services
diff options
context:
space:
mode:
authorstuebinm2024-03-05 03:05:17 +0100
committerstuebinm2024-03-05 03:05:17 +0100
commitc11127995defe25c8b4164389750672a25e61fc0 (patch)
tree7b68c10dfd88fb401448d6bbfab3288df7b5afc1 /chaski/services
parent911e1fd4986c0556321457a5606f0e747ef556c6 (diff)
restructure & general cleanup
- pkgs/ should now also contain all package overrides - pkgs/patches/ now contains all patches - nix flake info succeeds again - still not sure what to do about scripts - services which are not used should not be kept around this long
Diffstat (limited to 'chaski/services')
-rw-r--r--chaski/services/radicle.nix71
1 files changed, 0 insertions, 71 deletions
diff --git a/chaski/services/radicle.nix b/chaski/services/radicle.nix
deleted file mode 100644
index 62bb8d1..0000000
--- a/chaski/services/radicle.nix
+++ /dev/null
@@ -1,71 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-{
-
- networking.firewall.allowedTCPPorts = [ 8776 ];
-
- services.nginx.virtualHosts."node.radicle.stuebinm.eu" = {
- enableACME = true;
- forceSSL = true;
- locations."/".proxyPass = "http://localhost:4444";
- };
-
- services.nginx.virtualHosts."radicle.stuebinm.eu" = {
- enableACME = true;
- forceSSL = true;
- locations."/nodes".tryFiles = "/index.html =404";
- root = pkgs.radicle-interface.override {
- config = {
- nodes = {
- defaultHttpdPort = 443;
- defaultLocalHttpdPort = 8080;
- defaultHttpdScheme = "https";
- defaultNodePort = 8776;
- pinned = [ {
- baseUrl = {
- hostname = "node.radicle.stuebinm.eu";
- port = 443;
- scheme = "https";
- };
- } ];
- };
- reactions = ["👍" "👎" "😄" "🎉" "🙁" "🚀" "👀"];
- projects.pinned = [ {
- name = "bahnhof.name";
- id = "rad:z3R2BH43TcvaMQgtk6bKHxzqfNP2W";
- baseUrl = {
- hostname = "node.radicle.stuebinm.eu";
- port = 443;
- scheme = "https";
- };
- } ];
- };
- };
- };
-
- systemd.services.radicle-httpd = {
- enable = true;
- wantedBy = [ "multi-user.target" ];
- serviceConfig = {
- Type = "simple";
- Restart = "always";
- MemoryMax = "1G";
- User = "radicle";
- Group = "radicle";
- };
- environment.RAD_HOME = "/var/lib/radicle";
- path = [ pkgs.heartwood pkgs.gitMinimal ];
- script = ''
- cd /var/lib/radicle
- radicle-httpd --listen 0.0.0.0:4444;
- '';
- };
-
- users.users.radicle = {
- group = "radicle";
- isSystemUser = true;
- };
- users.groups.radicle = {};
-
- environment.systemPackages = [ pkgs.heartwood ];
-}