mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 23:02:38 +03:00
23 lines
634 B
Nix
23 lines
634 B
Nix
|
{ config, pkgs, lib, ... }: {
|
||
|
imports = [
|
||
|
<nix-bitcoin/modules/nix-bitcoin.nix>
|
||
|
<nix-bitcoin/modules/secrets/generate-secrets.nix>
|
||
|
];
|
||
|
|
||
|
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";
|
||
|
};
|
||
|
}
|