nix: add tangled

This commit is contained in:
Oleksandr Smirnov 2026-01-15 00:09:51 +02:00
parent 50015669e1
commit 3ef9e56aee
No known key found for this signature in database
3 changed files with 27 additions and 1 deletions

View file

@ -10,6 +10,10 @@
url = "github:nix-community/disko"; url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
tangled = {
url = "git+https://tangled.org/@tangled.org/core";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
@ -18,8 +22,9 @@
nixpkgs, nixpkgs,
agenix, agenix,
disko, disko,
tangled,
... ...
}@inputs: }:
{ {
nixosConfigurations."thought" = nixpkgs.lib.nixosSystem { nixosConfigurations."thought" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";

View file

@ -7,5 +7,6 @@
../../users/q.nix ../../users/q.nix
../../modules/forgejo.nix ../../modules/forgejo.nix
../../modules/tangled.nix
]; ];
} }

20
nix/modules/tangled.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
services.caddy.virtualHosts."knot.olexsmir.xyz".extraConfig = ''
reverse_proxy http://localhost:5555
'';
services.tangled.knot = {
enable = true;
openFirewall = false;
motd = ''
i use arch btw
i use nvim btw
i use nix btw
'';
server = {
owner = "did:plc:oifo2b6pso4z6es65c7hrrey";
hostname = "knot.olexsmir.xyz";
};
};
}