How do I use the nix package? #56
-
|
I was following the documentation and replacing my Thank you in advanced. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Currently Tuwunel is not in Nixpkgs repository. The packaging request is here. However you can use How to use Tuwunel package defined in # flake.nix
{
description = "...";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
tuwunel.url = "github:matrix-construct/tuwunel/v1.0.0";
};
outputs = { self, nixpkgs, tuwunel, ... }@inputs:
{
# your configuration...
};# configuration.nix
{ tuwunel, ... }:
{
systemd.services."tuwunel" = {
description = "Tuwunel Matrix server";
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "notify-reload";
ReloadSignal = "SIGUSR1";
ExecStart = "${tuwunel.packages."x86_64-linux".default}/bin/tuwunel --config /path/to/tuwunel.toml";
User = "tuwunel";
# see Tuwunel configuration example for more options
};
};
} |
Beta Was this translation helpful? Give feedback.
-
configuration.nix{ tuwunel, ... }: }; |
Beta Was this translation helpful? Give feedback.
Currently Tuwunel is not in Nixpkgs repository. The packaging request is here.
However you can use
flake.nixfrom Tuwunel repository as your flake input and use package defined in Tuwunel'sflake.nix.How to use Tuwunel package defined in
flake.nixin Tuwunel repository: