Skip to content

Nix package and NixOS module for Alephium.

License

Notifications You must be signed in to change notification settings

zopsicle/alephium-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Nix package and NixOS module for Alephium.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages