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-01 11:16:24 -08:00
|
|
|
|
./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.
|
2018-12-10 15:24:47 -08:00
|
|
|
|
#./hardware-configuration.nix
|
2018-12-06 07:59:41 -08:00
|
|
|
|
];
|
2019-01-01 11:16:24 -08:00
|
|
|
|
services.nix-bitcoin.enable = true;
|
|
|
|
|
# FIXME Install and use minimal or all modules
|
|
|
|
|
services.nix-bitcoin.modules = "all";
|
|
|
|
|
|
|
|
|
|
# FIXME: Define your hostname.
|
|
|
|
|
networking.hostName = "nix-bitcoin";
|
|
|
|
|
time.timeZone = "UTC";
|
|
|
|
|
|
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
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# FIXME: Turn off the binary cache by setting binaryCaches to empty list.
|
|
|
|
|
# This means that it will take a while for all packages to be built but it
|
|
|
|
|
# prevents a compromised cache taking over your system. As a result, the next
|
|
|
|
|
# line should be uncommented in production systems.
|
|
|
|
|
# nix.binaryCaches = [];
|
|
|
|
|
|
2018-12-28 05:44:32 -08:00
|
|
|
|
# FIXME: Add custom options options (like boot options):
|
|
|
|
|
|
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 = "18.09"; # Did you read the comment?
|
2018-11-13 15:44:54 -08:00
|
|
|
|
}
|