Adding bitcoin
This commit is contained in:
parent
d886efe46f
commit
7476d15558
3 changed files with 19 additions and 0 deletions
|
@ -48,6 +48,8 @@
|
||||||
hyprland.url = "github:hyprwm/Hyprland";
|
hyprland.url = "github:hyprwm/Hyprland";
|
||||||
# Steam Deck configs for NixOS
|
# Steam Deck configs for NixOS
|
||||||
jovian.url = "github:Jovian-Experiments/Jovian-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:
|
outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, deploy-rs, jovian, ... } @inputs:
|
||||||
let
|
let
|
||||||
|
|
16
nixos/hosts/framework-server/bitcoin.nix
Normal file
16
nixos/hosts/framework-server/bitcoin.nix
Normal 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;
|
||||||
|
|
||||||
|
}
|
|
@ -14,6 +14,7 @@
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./cron.nix
|
./cron.nix
|
||||||
./firewall.nix
|
./firewall.nix
|
||||||
|
./bitcoin.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
|
Loading…
Reference in a new issue