Adding bitcoin

This commit is contained in:
albert 2024-05-02 10:41:56 +09:00
parent d886efe46f
commit 7476d15558
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
3 changed files with 19 additions and 0 deletions

View file

@ -48,6 +48,8 @@
hyprland.url = "github:hyprwm/Hyprland";
# Steam Deck configs for NixOS
jovian.url = "github:Jovian-Experiments/Jovian-NixOS";
# Bitcoin node
inputs.nix-bitcoin.url = "github:fort-nix/nix-bitcoin/release";
};
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, deploy-rs, jovian, ... } @inputs:
let

View file

@ -0,0 +1,16 @@
{ inputs, config, pkgs, username, ... }: {
import = [
inputs.nix-bitcoin.nixosModules.default
# Secure defaults
(inputs.nix-bitcoin + "/modules/presets/secure-node.nix")
];
nix-bitcoin = {
enable = true;
operator = username;
};
services.bitcoind.dataDir = "/Storage/bitcoind";
services.bitcoind.txindex = true;
}

View file

@ -14,6 +14,7 @@
./wireguard.nix
./cron.nix
./firewall.nix
./bitcoin.nix
];
environment.systemPackages = [