2018-11-13 23:44:54 +00: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-11-20 22:14:40 +00:00
|
|
|
|
let
|
2018-12-01 22:00:39 +00:00
|
|
|
|
# Custom packages
|
2018-11-20 22:14:40 +00:00
|
|
|
|
nodeinfo = (import pkgs/nodeinfo.nix);
|
2018-11-24 22:34:39 +00:00
|
|
|
|
lightning-charge = import pkgs/lightning-charge.nix { inherit pkgs; };
|
2018-12-01 20:48:58 +00:00
|
|
|
|
nanopos = import pkgs/nanopos.nix { inherit pkgs; };
|
2018-12-10 16:34:41 +00:00
|
|
|
|
spark-wallet = import pkgs/spark-wallet.nix { inherit pkgs; };
|
2018-12-03 21:43:15 +00:00
|
|
|
|
liquidd = import pkgs/liquidd.nix;
|
2018-11-20 22:14:40 +00:00
|
|
|
|
in {
|
2018-11-13 23:44:54 +00:00
|
|
|
|
imports =
|
2018-11-19 23:09:57 +00:00
|
|
|
|
[
|
2018-11-20 22:21:45 +00:00
|
|
|
|
./modules/nixbitcoin.nix
|
2018-11-13 23:44:54 +00:00
|
|
|
|
];
|
2018-12-03 15:31:44 +00:00
|
|
|
|
# Turn off binary cache by setting binaryCaches to empty list
|
2018-12-01 22:00:39 +00:00
|
|
|
|
# nix.binaryCaches = [];
|
2018-11-20 22:14:40 +00:00
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
|
inherit nodeinfo;
|
2018-11-24 22:34:39 +00:00
|
|
|
|
inherit lightning-charge;
|
2018-12-01 20:48:58 +00:00
|
|
|
|
inherit nanopos;
|
2018-12-10 16:34:41 +00:00
|
|
|
|
inherit spark-wallet;
|
2018-12-03 21:43:15 +00:00
|
|
|
|
liquidd = (pkgs.callPackage liquidd { });
|
2018-11-20 22:14:40 +00:00
|
|
|
|
};
|
2018-11-20 22:21:45 +00:00
|
|
|
|
services.nixbitcoin.enable = true;
|
2018-12-03 15:31:44 +00:00
|
|
|
|
# Install and use minimal or all modules
|
|
|
|
|
services.nixbitcoin.modules = "all";
|
2018-11-19 23:09:57 +00:00
|
|
|
|
|
2018-12-06 15:59:41 +00:00
|
|
|
|
# Regular nixos configuration
|
|
|
|
|
networking.hostName = "nix-bitcoin"; # Define your hostname.
|
|
|
|
|
time.timeZone = "UTC";
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
networking.firewall.enable = true;
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
vim tmux
|
|
|
|
|
htop
|
|
|
|
|
];
|
|
|
|
|
|
2018-12-01 22:00:39 +00:00
|
|
|
|
# This value determines the NixOS release with which your system is to be
|
2018-11-13 23:44:54 +00:00
|
|
|
|
# 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 = "18.09"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|