mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 22:33:46 +03:00
examples/flake.nix: add comments and extra service
Like in importable-configuration.nix
This commit is contained in:
parent
1852305b13
commit
89ea349312
@ -1,3 +1,10 @@
|
|||||||
|
# This is a system configuration template that uses nix-bitcoin.
|
||||||
|
#
|
||||||
|
# You can adapt this to an existing system flake by copying the parts
|
||||||
|
# relevant to nix-bitcoin.
|
||||||
|
#
|
||||||
|
# Make sure to check and edit all lines marked by 'FIXME:'
|
||||||
|
|
||||||
{
|
{
|
||||||
description = "A basic nix-bitcoin node";
|
description = "A basic nix-bitcoin node";
|
||||||
|
|
||||||
@ -23,21 +30,25 @@
|
|||||||
# The secrets are stored in /etc/nix-bitcoin-secrets
|
# The secrets are stored in /etc/nix-bitcoin-secrets
|
||||||
nix-bitcoin.generateSecrets = true;
|
nix-bitcoin.generateSecrets = true;
|
||||||
|
|
||||||
# Enable services.
|
# Enable some services.
|
||||||
# See ../configuration.nix for all available features.
|
# See ../configuration.nix for all available features.
|
||||||
services.bitcoind.enable = true;
|
services.bitcoind.enable = true;
|
||||||
|
services.clightning.enable = true;
|
||||||
|
|
||||||
# When using nix-bitcoin as part of a larger NixOS configuration, set the following to enable
|
# 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
|
# interactive access to nix-bitcoin features (like bitcoin-cli) for your system's main user
|
||||||
nix-bitcoin.operator = {
|
nix-bitcoin.operator = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "main"; # Set this to your system's main user
|
# FIXME: Set this to your system's main user
|
||||||
|
name = "main";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The system's main unprivileged user. This setting is usually part of your
|
# The system's main unprivileged user.
|
||||||
# existing NixOS configuration.
|
# In an existing NixOS configuration, this setting is usually already defined.
|
||||||
users.users.main = {
|
users.users.main = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
# FIXME: This is unsafe. Use `hashedpassword` or `passwordFile` instead in a real
|
||||||
|
# deployment: https://search.nixos.org/options?show=users.users.%3Cname%3E.hashedPassword
|
||||||
password = "a";
|
password = "a";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user