mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
nix: add tangled
This commit is contained in:
parent
50015669e1
commit
3ef9e56aee
3 changed files with 27 additions and 1 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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
20
nix/modules/tangled.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue