2020-10-18 04:41:57 -07:00
|
|
|
{ config, pkgs, lib, ... }: {
|
|
|
|
imports = [
|
2021-08-15 02:28:45 -07:00
|
|
|
<nix-bitcoin/modules/modules.nix>
|
2020-10-18 04:41:57 -07:00
|
|
|
];
|
|
|
|
|
2021-03-10 05:08:34 -08:00
|
|
|
nix-bitcoin.generateSecrets = true;
|
|
|
|
|
2020-10-18 04:41:57 -07:00
|
|
|
services.bitcoind.enable = true;
|
|
|
|
services.clightning.enable = true;
|
|
|
|
|
|
|
|
# When using nix-bitcoin as part of a larger NixOS configuration, set the following to enable
|
|
|
|
# interactive access to nix-bitcoin features (like bitcoin-cli) for your system's main user
|
|
|
|
nix-bitcoin.operator = {
|
|
|
|
enable = true;
|
|
|
|
name = "main"; # Set this to your system's main user
|
|
|
|
};
|
|
|
|
|
2021-08-15 02:28:40 -07:00
|
|
|
# The system's main unprivileged user. This setting is usually part of your
|
|
|
|
# existing NixOS configuration.
|
2020-10-18 04:41:57 -07:00
|
|
|
users.users.main = {
|
|
|
|
isNormalUser = true;
|
|
|
|
password = "a";
|
|
|
|
};
|
|
|
|
}
|