2020-10-18 11:41:57 +00:00
|
|
|
{ config, pkgs, lib, ... }: {
|
|
|
|
imports = [
|
|
|
|
<nix-bitcoin/modules/nix-bitcoin.nix>
|
|
|
|
];
|
|
|
|
|
2021-03-10 13:08:34 +00:00
|
|
|
nix-bitcoin.generateSecrets = true;
|
|
|
|
|
2020-10-18 11:41:57 +00: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
|
|
|
|
};
|
|
|
|
|
|
|
|
# The system's main unprivileged user
|
|
|
|
users.users.main = {
|
|
|
|
isNormalUser = true;
|
|
|
|
password = "a";
|
|
|
|
};
|
|
|
|
}
|