Work in progress but if you feel adventurous you can try it out.
Example NixOS configuration:
{ ... }:
let
alephium-nix = fetchTarball {
url = "https://github.com/chloekek/alephium-nix/archive/<version>.tar.gz";
sha256 = "<hash>";
};
in
{
imports = [
(alephium-nix + "/nixos-module.nix")
];
services.alephium.enable = true;
# If you enable mining, replace these addresses with yours.
services.alephium.mining.miner-addresses = [
"1cLiepA3tKr5d47cMZVb2zdtcWwwSqFibmSvcaoUHLg8"
"1DJ4nnfaVWHQTz3n8BTTeByWkKGYf3baPCPDknenRGtYJ"
"1AhwiVEdzWD3abZpRHyMSrPEDwoAwySrYZAgMZz4bhDCi"
"1BkWG82inFPdvmB2HFbFQvosnxddF78Jvi9DbLqZbHwVw"
];
# Example configuration for Prometheus.
# If you do not use Prometheus then you can ignore this example.
services.prometheus.enable = true;
services.prometheus.scrapeConfigs = [
{
job_name = "alephium";
scrape_interval = "10s";
static_configs = [ { targets = [ "localhost:12973" ]; } ];
}
];
}
The Nix code in this repository is licensed CC0. See LICENSE.CC0 for more information.