yep, more dotfiles

feat: add a spindle instance

wiro.world 11cfaa5f 5fd98ed2

verified
Changed files
+39 -10
.tangled
workflows
nixos
profiles
+10
.tangled/workflows/nix.yml
···
+
when:
+
- event: ["push", "pull_request"]
+
branch: ["main"]
+
+
dependencies:
+
nixpkgs:
+
+
steps:
+
- command: |
+
echo Hello, World!
+4 -4
flake.lock
···
"sqlite-lib-src": "sqlite-lib-src"
},
"locked": {
-
"lastModified": 1752686341,
-
"narHash": "sha256-qDX/8AMd+nAumzngF45xRtdH8u+KTbFtdCSdwtpHG9I=",
+
"lastModified": 1753205145,
+
"narHash": "sha256-DU2FR/kX/xA9fKDjgezujQG65oJy7ANCp3w3OVtCH3A=",
"ref": "refs/heads/master",
-
"rev": "f4ec8829cab63008d39b413150034564f27db26f",
-
"revCount": 945,
+
"rev": "096eb308fe40e72c29eaa4e597bd3b716951708c",
+
"revCount": 979,
"type": "git",
"url": "https://tangled.sh/@tangled.sh/core"
},
+25 -6
nixos/profiles/server.nix
···
pds-port = 3001;
pds-hostname = "pds.wiro.world";
-
tangled-port = 3002;
-
tangled-hostname = "knot.wiro.world";
+
tangled-knot-port = 3002;
+
tangled-knot-hostname = "knot.wiro.world";
+
+
tangled-spindle-port = 3003;
+
tangled-spindle-hostname = "spindle.wiro.world";
grafana-port = 9000;
grafana-hostname = "console.wiro.world";
···
agenix.nixosModules.default
tangled.nixosModules.knot
+
tangled.nixosModules.spindle
];
config = {
···
'';
};
-
virtualHosts.${tangled-hostname}.extraConfig = ''
-
reverse_proxy http://localhost:${toString tangled-port}
+
virtualHosts.${tangled-knot-hostname}.extraConfig = ''
+
reverse_proxy http://localhost:${toString tangled-knot-port}
+
'';
+
+
virtualHosts.${tangled-spindle-hostname}.extraConfig = ''
+
reverse_proxy http://localhost:${toString tangled-spindle-port}
'';
};
···
openFirewall = true;
server = {
-
listenAddr = "0.0.0.0:${toString tangled-port}";
+
listenAddr = "localhost:${toString tangled-knot-port}";
secretFile = config.age.secrets.tangled-config.path;
-
hostname = tangled-hostname;
+
hostname = tangled-knot-hostname;
+
};
+
};
+
+
+
services.tangled-spindle = {
+
enable = true;
+
+
server = {
+
listenAddr = "localhost:${toString tangled-spindle-port}";
+
hostname = tangled-spindle-hostname;
+
owner = "did:plc:xhgrjm4mcx3p5h3y6eino6ti";
};
};