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-11-20 14:14:40 -08:00
|
|
|
|
let
|
2018-12-01 14:00:39 -08:00
|
|
|
|
# Custom packages
|
2018-11-20 14:14:40 -08:00
|
|
|
|
nodeinfo = (import pkgs/nodeinfo.nix);
|
2018-11-24 14:34:39 -08:00
|
|
|
|
lightning-charge = import pkgs/lightning-charge.nix { inherit pkgs; };
|
2018-12-01 12:48:58 -08:00
|
|
|
|
nanopos = import pkgs/nanopos.nix { inherit pkgs; };
|
2018-11-20 14:14:40 -08:00
|
|
|
|
in {
|
2018-11-19 15:09:57 -08:00
|
|
|
|
disabledModules = [ "services/security/tor.nix" ];
|
|
|
|
|
|
2018-11-13 15:44:54 -08:00
|
|
|
|
imports =
|
2018-11-19 15:09:57 -08:00
|
|
|
|
[
|
2018-11-20 14:21:45 -08:00
|
|
|
|
./modules/nixbitcoin.nix
|
2018-11-13 15:44:54 -08:00
|
|
|
|
];
|
|
|
|
|
|
2018-12-01 14:00:39 -08:00
|
|
|
|
# turn off binary cache by setting binaryCaches to empty list
|
|
|
|
|
# nix.binaryCaches = [];
|
2018-11-22 10:32:26 -08:00
|
|
|
|
|
2018-11-13 15:44:54 -08:00
|
|
|
|
networking.hostName = "nix-bitcoin"; # Define your hostname.
|
|
|
|
|
time.timeZone = "UTC";
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2018-12-01 14:00:39 -08:00
|
|
|
|
vim tmux
|
2018-11-13 15:44:54 -08:00
|
|
|
|
];
|
2018-12-01 14:00:39 -08:00
|
|
|
|
|
2018-11-20 14:14:40 -08:00
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
|
inherit nodeinfo;
|
2018-11-24 14:34:39 -08:00
|
|
|
|
inherit lightning-charge;
|
2018-12-01 12:48:58 -08:00
|
|
|
|
inherit nanopos;
|
2018-11-20 14:14:40 -08:00
|
|
|
|
};
|
2018-11-13 15:44:54 -08:00
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
networking.firewall.enable = true;
|
2018-11-20 14:21:45 -08:00
|
|
|
|
services.nixbitcoin.enable = true;
|
2018-11-19 15:09:57 -08:00
|
|
|
|
|
2018-12-01 14:00:39 -08:00
|
|
|
|
# This value determines the NixOS release with which your system is to be
|
2018-11-13 15:44:54 -08: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?
|
|
|
|
|
|
|
|
|
|
}
|