{ config, pkgs, lib, ... }: { imports = [ <nix-bitcoin/modules/presets/secure-node.nix>
# FIXME: The hardened kernel profile improves security but
# decreases performance by ~50%.
# Turn it off when not needed.
<nix-bitcoin/modules/presets/hardened.nix>
#
# You can enable the hardened-extended preset instead to further improve security
# at the cost of functionality and performance.
# See the comments at the top of `hardened-extended.nix` for further details.
# <nix-bitcoin/modules/presets/hardened-extended.nix>
# FIXME: Uncomment the next line to import your hardware configuration. If so,
# add the hardware configuration file to the same directory as this file.
#./hardware-configuration.nix
];
https://github.com/ElementsProject/lightning/#pruning for more information.
services.clightning.enable = true;
};
};
};
See https://github.com/bitcoin-core/HWI for more information.
'';
};
networking.hostName = "host"; time.timeZone = "UTC";
services.openssh = { enable = true; settings.PasswordAuthentication = false; }; users.users.root = { openssh.authorizedKeys.keys = [ # FIXME: Replace this with your SSH pubkey "ssh-ed25519 AAAAC3..." ]; };
environment.systemPackages = with pkgs; [ vim ];
(e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
nix-bitcoin.configVersion = "0.0.85"; }