2018-11-13 15:44:54 -08:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘ nixos-help’ ).
{ config , pkgs , . . . }:
2018-12-10 15:24:47 -08:00
{
imports = [
2019-01-26 10:06:25 -08:00
./modules/nix-bitcoin.nix
2018-12-28 05:44:32 -08:00
# FIXME: Uncomment next line to import your hardware configuration. If so,
# add the hardware configuration file to the same directory as this file.
2019-01-02 06:56:57 -08:00
# This is not needed when deploying to a virtual box.
2018-12-10 15:24:47 -08:00
#./hardware-configuration.nix
2018-12-06 07:59:41 -08:00
] ;
2019-04-06 07:50:30 -07:00
# FIXME Enable modules by uncommenting their respective line. Disable modules by commenting out their respective line.
# Enable this module to use the nix-bitcoin node configuration. Only disable this if you know what you are doing.
services . nix-bitcoin . enable = true ;
# Enable this module to use clightning, a Lightning Network implementation in C.
services . clightning . enable = true ;
2019-04-10 02:23:10 -07:00
# Enable this module to use lightning-charge, a simple drop-in solution for accepting lightning payments. Only enable this if clightning is enabled.
2019-04-06 07:50:30 -07:00
# services.lightning-charge.enable = true;
2019-04-10 02:23:10 -07:00
# Enable this module to use nanopos, a simple Lightning point-of-sale system, powered by Lightning Charge. Only enable this if clightning and lightning-charge are enabled.
2019-04-06 07:50:30 -07:00
# services.nanopos.enable = true;
2019-04-10 02:23:10 -07:00
# Enable this module to use the nix-bitcoin-webindex, a simple website displaying your node information and link to nanopos store. Only enable this if clightning, lightning-charge, and nanopos are enabled.
2019-04-06 07:50:30 -07:00
# services.nix-bitcoin-webindex.enable = true;
2019-04-10 02:23:10 -07:00
# Enable this option to listen for incoming lightning connections. By default nix-bitcoin nodes offer outgoing connectivity.
2019-04-06 07:50:30 -07:00
# services.clightning.autolisten = true;
# Enable this module to use liquidd, a daemon for an inter-exchange settlement network linking together cryptocurrency exchanges and institutions around the world.
# services.liquidd.enable = true;
2019-04-10 02:23:10 -07:00
# Enable this module to use spark-wallet, a minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps. Only enable this if clightning is enabled.
2019-04-06 07:50:30 -07:00
# services.spark-wallet.enable = true;
# Enable this module to use electrs, an efficient re-implementation of Electrum Server in Rust.
# services.electrs.enable = true;
2019-01-01 11:16:24 -08:00
# FIXME: Define your hostname.
networking . hostName = " n i x - b i t c o i n " ;
time . timeZone = " U T C " ;
2018-12-28 05:44:32 -08:00
# FIXME: Add your SSH pubkey
2019-01-01 11:16:24 -08:00
services . openssh . enable = true ;
2018-12-28 05:44:32 -08:00
users . users . root = {
openssh . authorizedKeys . keys = [ " " ] ;
} ;
2019-01-01 11:16:24 -08:00
# FIXME: add packages you need in your system
environment . systemPackages = with pkgs ; [
vim
] ;
2019-01-15 15:07:32 -08:00
# FIXME: Turn on the binary cache by commenting out the next line. When the
# binary cache is enabled you are retrieving builds from a trusted third
# party which can compromise your system. As a result, the cache should only
# be enabled to speed up deployment of test systems.
nix . binaryCaches = [ ] ;
# FIXME: Add custom options (like boot options, output of
# nixos-generate-config, etc.):
2018-12-28 05:44:32 -08:00
2019-01-01 11:16:24 -08:00
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system . stateVersion = " 1 8 . 0 9 " ; # Did you read the comment?
2018-11-13 15:44:54 -08:00
}